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"