浏览代码

Fix backwards logic in uninstaller once and for all

Really this time :P

Fixes #4533
Marc Cornellà 9 年之前
父节点
当前提交
d06f4d0893
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/uninstall.sh

+ 1 - 1
tools/uninstall.sh

@@ -1,5 +1,5 @@
 read -r -p "Are you sure you want to remove Oh My Zsh? [y/N] " confirmation
-if [ $confirmation = y ] || [ $confirmation = Y ]
+if [ "$confirmation" != y ] && [ "$confirmation" != Y ]
 then
   echo "Uninstall cancelled"
   exit