b2010a0ae63ba09632a3b427edc81888eadec4d8

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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.

Diff

 1diff --git a/tools/uninstall.sh b/tools/uninstall.sh
 2index f9da00c9bade5730a671cf38fd58e15ec5f94317..488b002e762e83147f141452bc8b68b224a62fc5 100644
 3--- a/tools/uninstall.sh
 4+++ b/tools/uninstall.sh
 5@@ -1,8 +1,8 @@
 6 read -r -p "Are you sure you want to remove Oh My Zsh? [y/N] " confirmation
 7-if ! [[ $confirmation =~ ^[yY]$ ]]
 8+if [ $confirmation = y ] && [ $confirmation = Y ]
 9 then
10-    echo "Uninstall cancelled"
11-    exit
12+  echo "Uninstall cancelled"
13+  exit
14 fi
15 
16 echo "Removing ~/.oh-my-zsh"