浏览代码

update: only update on a valid affirmative input (#9062)

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
alexagnelli 4 年之前
父节点
当前提交
48b98b957e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/check_for_upgrade.sh

+ 1 - 1
tools/check_for_upgrade.sh

@@ -79,8 +79,8 @@ function update_ohmyzsh() {
         read -r -k 1 option
         [[ "$option" != $'\n' ]] && echo
         case "$option" in
+            [yY$'\n']) update_ohmyzsh ;;
             [nN]) update_last-updated_file ;;
-            *) update_ohmyzsh ;;
         esac
     fi
 }