浏览代码

Merge pull request #4207 from mpscholten/master

Also accept any forms of yes as an answer to the "do you want to update?" prompt
Marc Cornellà 8 年之前
父节点
当前提交
ef031dfe8f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/check_for_upgrade.sh

+ 1 - 1
tools/check_for_upgrade.sh

@@ -46,7 +46,7 @@ then
     else
       echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
       read line
-      if [ "$line" = Y ] || [ "$line" = y ] || [ -z "$line" ]; then
+      if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
         _upgrade_zsh
       else
         _update_zsh_update