Compare commits

..

4 Commits

Author SHA1 Message Date
dw-0
191bdd4874 Revert "fix: update scp submodule so duplicate sections are preserved… (#737)
Revert "fix: update scp submodule so duplicate sections are preserved while editing configs (#735)"

This reverts commit ae0a6b697e.
2025-10-26 18:58:33 +01:00
dw-0
ae0a6b697e fix: update scp submodule so duplicate sections are preserved while editing configs (#735)
* Squashed 'kiauh/core/submodules/simple_config_parser/' changes from f5eee99..5bc9e0a

5bc9e0a docs: update README
394dd7b refactor!: improve parsing and writing for config (#5)

git-subtree-dir: kiauh/core/submodules/simple_config_parser
git-subtree-split: 5bc9e0a50947f1be2f4877a10ab3a632774f82ea

* fix(logging): change warning to error message for config creation failure

* fix(config): improve readability by using descriptive variable names for options
2025-10-26 16:28:33 +01:00
dw-0
b6521fd721 fix(ui): replace top_border and bottom_border functions with inline echo statements for dialogs 2025-10-15 17:05:18 +02:00
dw-0
62b0f4f0f5 chore(deps): replace pyright with mypy in dev requirements 2025-10-13 21:54:35 +02:00
2 changed files with 9 additions and 9 deletions

View File

@@ -54,15 +54,15 @@ function kiauh_update_avail() {
function kiauh_update_dialog() { function kiauh_update_dialog() {
[[ ! $(kiauh_update_avail) == "true" ]] && return [[ ! $(kiauh_update_avail) == "true" ]] && return
top_border echo -e "/-------------------------------------------------------\\"
echo -e "|${green} New KIAUH update available! ${white}|" echo -e "|${green} New KIAUH update available! ${white}|"
hr echo -e "|-------------------------------------------------------|"
echo -e "|${green} View Changelog: https://git.io/JnmlX ${white}|" echo -e "|${green} View Changelog: https://git.io/JnmlX ${white}|"
blank_line echo -e "| |"
echo -e "|${yellow} It is recommended to keep KIAUH up to date. Updates ${white}|" echo -e "|${yellow} It is recommended to keep KIAUH up to date. Updates ${white}|"
echo -e "|${yellow} usually contain bugfixes, important changes or new ${white}|" echo -e "|${yellow} usually contain bugfixes, important changes or new ${white}|"
echo -e "|${yellow} features. Please consider updating! ${white}|" echo -e "|${yellow} features. Please consider updating! ${white}|"
bottom_border echo -e "\-------------------------------------------------------/"
local yn local yn
read -p "${cyan}###### Do you want to update now? (Y/n):${white} " yn read -p "${cyan}###### Do you want to update now? (Y/n):${white} " yn
@@ -82,11 +82,11 @@ function kiauh_update_dialog() {
function check_euid() { function check_euid() {
if [[ ${EUID} -eq 0 ]]; then if [[ ${EUID} -eq 0 ]]; then
echo -e "${red}" echo -e "${red}"
top_border echo -e "/-------------------------------------------------------\\"
echo -e "| !!! THIS SCRIPT MUST NOT RUN AS ROOT !!! |" echo -e "| !!! THIS SCRIPT MUST NOT RUN AS ROOT !!! |"
echo -e "| |" echo -e "| |"
echo -e "| It will ask for credentials as needed. |" echo -e "| It will ask for credentials as needed. |"
bottom_border echo -e "\-------------------------------------------------------/"
echo -e "${white}" echo -e "${white}"
exit 1 exit 1
fi fi
@@ -95,13 +95,13 @@ function check_euid() {
function check_if_ratos() { function check_if_ratos() {
if [[ -n $(which ratos) ]]; then if [[ -n $(which ratos) ]]; then
echo -e "${red}" echo -e "${red}"
top_border echo -e "/-------------------------------------------------------\\"
echo -e "| !!! RatOS 2.1 or greater detected !!! |" echo -e "| !!! RatOS 2.1 or greater detected !!! |"
echo -e "| |" echo -e "| |"
echo -e "| KIAUH does currently not support RatOS. |" echo -e "| KIAUH does currently not support RatOS. |"
echo -e "| If you have any questions, please ask for help on the |" echo -e "| If you have any questions, please ask for help on the |"
echo -e "| RatRig Community Discord: https://discord.gg/ratrig |" echo -e "| RatRig Community Discord: https://discord.gg/ratrig |"
bottom_border echo -e "\-------------------------------------------------------/"
echo -e "${white}" echo -e "${white}"
exit 1 exit 1
fi fi

View File

@@ -1,2 +1,2 @@
ruff (>=0.9.10) ruff (>=0.9.10)
pyright mypy