浏览代码

No input for Update Check defaults to Yes

HeroCC 9 年之前
父节点
当前提交
6a1b8320fe
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      tools/check_for_upgrade.sh

+ 2 - 3
tools/check_for_upgrade.sh

@@ -41,10 +41,9 @@ then
     then
       _upgrade_zsh
     else
-      echo "[Oh My Zsh] Would you like to check for updates?"
-      echo "Type Y to update oh-my-zsh: \c"
+      echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
       read line
-      if [ "$line" = Y ] || [ "$line" = y ]; then
+      if [ "$line" = Y ] || [ "$line" = y ] || [ -z "$line" ]; then
         _upgrade_zsh
       else
         _update_zsh_update