Browse Source

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.
Marc Cornellà 8 years ago
parent
commit
b2010a0ae6
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tools/uninstall.sh

+ 3 - 3
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"