fix: addition to b20cda1

This commit is contained in:
th33xitus
2020-10-13 11:55:01 +02:00
parent b20cda1d15
commit dec1c0e83c

View File

@@ -259,7 +259,9 @@ create_shell_command_example(){
}
init_ini(){
[ ! -f $INI_FILE ] && touch $INI_FILE
if [ ! -f $INI_FILE ]; then
echo -e "#don't edit this file if you don't know what you are doing...\c" > $INI_FILE
fi
if [ ! $(grep -E "^backup_before_update=." $INI_FILE) ]; then
echo -e "\nbackup_before_update=false\c" >> $INI_FILE
fi