Improve installation conditions

pull/1723/head
egvimo 2020-12-11 13:23:00 +00:00
parent 5e24d05ff2
commit 0ec6be9e14
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ if ! [[ $silent ]] && ! [[ $no_modify_config ]]; then
done
fi
while ! [ $silent ]; do
while ! [ $append_to_config ]; do
read -e -n 1 -r -p "Would you like to keep your $CONFIG_FILE and append bash-it templates at the end? [y/N] " choice
case $choice in
[yY])
@ -163,7 +163,7 @@ if ! [[ $silent ]] && ! [[ $no_modify_config ]]; then
;;
esac
done
elif [[ $silent ]] && [[ $append_to_config ]]; then
elif [[ $append_to_config ]]; then
# backup/append
backup_append
elif [[ $silent ]] && ! [[ $no_modify_config ]]; then