From fc2637be6b0c368bcb97af4e9406ef9a20fd5b3e Mon Sep 17 00:00:00 2001 From: Flavio Capitao Date: Mon, 14 Mar 2022 11:23:54 +0100 Subject: [PATCH] fix: uninstall script default option #1140 --- installers/uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/uninstall.sh b/installers/uninstall.sh index d0a3d9fb..06173755 100755 --- a/installers/uninstall.sh +++ b/installers/uninstall.sh @@ -202,7 +202,7 @@ function _remove_installed_packages() { fi echo -n "Remove the following installed packages? lighttpd hostapd iptables-persistent $php_package $dhcpcd_package vnstat qrencode [y/N]: " read answer - if [ "$answer" != 'n' ] && [ "$answer" != 'N' ]; then + if [ "$answer" == 'y' ] || [ "$answer" == 'Y' ]; then echo "Removing packages." sudo apt-get remove lighttpd hostapd iptables-persistent $php_package $dhcpcd_package vnstat qrencode || _install_error "Unable to remove installed packages" sudo apt-get autoremove || _install_error "Unable to run apt autoremove"