From 9be7f945c227d3b51f7c41fa98f700de34fa204c Mon Sep 17 00:00:00 2001 From: Justin Cooper Date: Tue, 16 Oct 2012 23:39:21 -0500 Subject: [PATCH] second attempt at uninstall prompt --- scripts/uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh index 173b0ea..2d5ad1f 100755 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -8,7 +8,7 @@ WEBIDE_HOME="/home/webide" NODE=$(which node) read -p "Thank you for using the WebIDE. Uninstall the WebIDE [y/n]? " RESPONSE -[[ $RESPONSE == "y" ]] || exit 1 +[[ $RESPONSE =~ ^[Yy]$ ]] || exit 1 echo "**** Removing restartd WebIDE configuration ****" sed -i '/adafruit-webide.sh/ d' /etc/restartd.conf