summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeroCC <HeroCC@users.noreply.github.com>2015-04-20 11:24:05 -0400
committerncanceill <nicolas.canceill@ens-cachan.org>2015-06-10 14:36:52 +0200
commit6a1b8320fe9f087179c9ebf092bd17a782127d96 (patch)
tree2eafb6cd94119557b771b7b659fc8c3a61fc176c
parent4224c2a1af2a1b99c14ef81012af321c39856cf5 (diff)
downloadzsh-6a1b8320fe9f087179c9ebf092bd17a782127d96.tar.gz
zsh-6a1b8320fe9f087179c9ebf092bd17a782127d96.tar.bz2
zsh-6a1b8320fe9f087179c9ebf092bd17a782127d96.zip
No input for Update Check defaults to Yes
-rw-r--r--tools/check_for_upgrade.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index b2b356e0c..5afd83c1e 100644
--- a/tools/check_for_upgrade.sh
+++ b/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