From b2010a0ae63ba09632a3b427edc81888eadec4d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?= <marc.cornella@live.com>
Date: Wed, 21 Oct 2015 11:17:37 +0200
Subject: [PATCH] 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.
---
 tools/uninstall.sh | 6 +++---
 1 file 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"