6a1b8320fe9f087179c9ebf092bd17a782127d96

Author
HeroCC <HeroCC@users.noreply.github.com>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

No input for Update Check defaults to Yes

Diff

 1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
 2index b2b356e0cb957a0701b29732be1a2a43cd760e12..5afd83c1e18da0bbd015c1aff308925f749a395c 100644
 3--- a/tools/check_for_upgrade.sh
 4+++ b/tools/check_for_upgrade.sh
 5@@ -41,10 +41,9 @@ then
 6     then
 7       _upgrade_zsh
 8     else
 9-      echo "[Oh My Zsh] Would you like to check for updates?"
10-      echo "Type Y to update oh-my-zsh: \c"
11+      echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
12       read line
13-      if [ "$line" = Y ] || [ "$line" = y ]; then
14+      if [ "$line" = Y ] || [ "$line" = y ] || [ -z "$line" ]; then
15         _upgrade_zsh
16       else
17         _update_zsh_update