diff --git a/kiauh.sh b/kiauh.sh index 4fb5943..f37af71 100755 --- a/kiauh.sh +++ b/kiauh.sh @@ -52,6 +52,7 @@ OCTOPRINT_CFG_DIR=${HOME}/.octoprint OCTOPRINT_SERVICE1=/etc/init.d/octoprint OCTOPRINT_SERVICE2=/etc/default/octoprint #misc +INI_DIR=${HOME}/kiauh/kiauh.ini BACKUP_DIR=${HOME}/kiauh-backups PRINTER_CFG=${HOME}/printer.cfg @@ -182,6 +183,7 @@ install_menu(){ update_menu(){ print_header + print_msg && CONFIRM_MSG="" && ERROR_MSG="" read_bb4u_stat #compare versions ui_print_versions diff --git a/scripts/backup.sh b/scripts/backup.sh index 3d689e0..d28445d 100644 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -24,12 +24,14 @@ read_bb4u_stat(){ toggle_backups(){ source_ini if [ "$backup_before_update" = "true" ]; then - sed -i '/backup_before_update=/s/true/false/' ${HOME}/kiauh2/kiauh.ini + sed -i '/backup_before_update=/s/true/false/' $INI_DIR BB4U_STATUS="${green}[Enable]${default} backups before updating " + CONFIRM_MSG=" Backups before updates are now >>> DISABLED <<< !" fi if [ "$backup_before_update" = "false" ]; then - sed -i '/backup_before_update=/s/false/true/' ${HOME}/kiauh2/kiauh.ini + sed -i '/backup_before_update=/s/false/true/' $INI_DIR BB4U_STATUS="${red}[Disable]${default} backups before updating " + CONFIRM_MSG=" Backups before updates are now >>> ENABLED <<< !" fi } diff --git a/scripts/ui.sh b/scripts/ui.sh index d58308f..8605219 100644 --- a/scripts/ui.sh +++ b/scripts/ui.sh @@ -64,9 +64,9 @@ update_ui(){ top_border echo -e "| $(title_msg "~~~~~~~~~~~~~~ [ Update Menu ] ~~~~~~~~~~~~~~") | " hr - echo -e "| It's a good idea to check the following website | " + echo -e "| It is a good idea to check the following website | " echo -e "| for important software changes to the config file | " - echo -e "| BEFORE updating your klipper installation: | " + echo -e "| >> BEFORE << updating your klipper installation: | " echo -e "| | " echo -e "| ${yellow}https://www.klipper3d.org/Config_Changes.html${default} | " bottom_border