fix: #26 - .gitignore for kiauh.ini #28

Merged
dw-0 merged 4 commits from work-ini into master 2020-10-13 11:59:35 +02:00
Showing only changes of commit dec1c0e83c - Show all commits

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