Small fixes/tweaks

This commit is contained in:
th33xitus
2020-07-15 21:50:40 +02:00
parent 45fe688f87
commit 182164af9c
3 changed files with 8 additions and 4 deletions

View File

@@ -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
}