fix: invert default selection

invert the pre-selected option from yes to no.
This commit is contained in:
th33xitus
2020-09-11 12:55:34 +02:00
committed by GitHub
parent 4d53a92c83
commit 0c9e967ebe

View File

@@ -77,13 +77,13 @@ remove_moonraker(){
unset REMOVE_MOONRAKER_CONF unset REMOVE_MOONRAKER_CONF
while true; do while true; do
echo echo
read -p "${cyan}###### Delete moonraker.conf? (Y/n):${default} " yn read -p "${cyan}###### Delete moonraker.conf? (y/N):${default} " yn
case "$yn" in case "$yn" in
Y|y|Yes|yes|"") Y|y|Yes|yes)
echo -e "###### > Yes" echo -e "###### > Yes"
REMOVE_MOONRAKER_CONF="true" REMOVE_MOONRAKER_CONF="true"
break;; break;;
N|n|No|no) N|n|No|no|"")
echo -e "###### > No" echo -e "###### > No"
REMOVE_MOONRAKER_CONF="false" REMOVE_MOONRAKER_CONF="false"
break;; break;;
@@ -203,4 +203,4 @@ remove_nginx(){
else else
ERROR_MSG=" Looks like Nginx was already removed!\n Skipping..." ERROR_MSG=" Looks like Nginx was already removed!\n Skipping..."
fi fi
} }