summaryrefslogtreecommitdiff
path: root/tools/uninstall.sh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-10-21 11:17:37 +0200
committerMarc Cornellà <marc.cornella@live.com>2015-10-21 11:24:12 +0200
commitb2010a0ae63ba09632a3b427edc81888eadec4d8 (patch)
tree5adb68ee889d1b379e66f46f81520019ecbd6a47 /tools/uninstall.sh
parentca5632bce10e1f5b0fe2a59151ae0fd776619d89 (diff)
downloadzsh-b2010a0ae63ba09632a3b427edc81888eadec4d8.tar.gz
zsh-b2010a0ae63ba09632a3b427edc81888eadec4d8.tar.bz2
zsh-b2010a0ae63ba09632a3b427edc81888eadec4d8.zip
Fix syntax error in confirmation prompt of uninstall.sh
We need to use POSIX syntax. This file is no longer executed with zsh. Fixes #4483.
Diffstat (limited to 'tools/uninstall.sh')
-rw-r--r--tools/uninstall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/uninstall.sh b/tools/uninstall.sh
index f9da00c9b..488b002e7 100644
--- a/tools/uninstall.sh
+++ b/tools/uninstall.sh
@@ -1,8 +1,8 @@
read -r -p "Are you sure you want to remove Oh My Zsh? [y/N] " confirmation
-if ! [[ $confirmation =~ ^[yY]$ ]]
+if [ $confirmation = y ] && [ $confirmation = Y ]
then
- echo "Uninstall cancelled"
- exit
+ echo "Uninstall cancelled"
+ exit
fi
echo "Removing ~/.oh-my-zsh"