mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-13 10:34:28 +05:00
rename INI_DIR to INI_FILE
This commit is contained in:
@@ -28,12 +28,12 @@ read_bb4u_stat(){
|
|||||||
toggle_backups(){
|
toggle_backups(){
|
||||||
source_ini
|
source_ini
|
||||||
if [ "$backup_before_update" = "true" ]; then
|
if [ "$backup_before_update" = "true" ]; then
|
||||||
sed -i '/backup_before_update=/s/true/false/' $INI_DIR
|
sed -i '/backup_before_update=/s/true/false/' $INI_FILE
|
||||||
BB4U_STATUS="${green}[Enable]${default} backups before updating "
|
BB4U_STATUS="${green}[Enable]${default} backups before updating "
|
||||||
CONFIRM_MSG=" Backups before updates are now >>> DISABLED <<< !"
|
CONFIRM_MSG=" Backups before updates are now >>> DISABLED <<< !"
|
||||||
fi
|
fi
|
||||||
if [ "$backup_before_update" = "false" ]; then
|
if [ "$backup_before_update" = "false" ]; then
|
||||||
sed -i '/backup_before_update=/s/false/true/' $INI_DIR
|
sed -i '/backup_before_update=/s/false/true/' $INI_FILE
|
||||||
BB4U_STATUS="${red}[Disable]${default} backups before updating "
|
BB4U_STATUS="${red}[Disable]${default} backups before updating "
|
||||||
CONFIRM_MSG=" Backups before updates are now >>> ENABLED <<< !"
|
CONFIRM_MSG=" Backups before updates are now >>> ENABLED <<< !"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user