summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2012-07-20 15:07:51 -0700
committerRobby Russell <robby@planetargon.com>2012-07-20 15:07:51 -0700
commit1c23a52f5744ef419e83733d18a6a698ddd14d1e (patch)
treea95fb50f7e5277f3a468e2c552676a186e7ead5b /tools
parent11034217a7ea3cffe6e0fe631837c518b8c7e1a5 (diff)
downloadzsh-1c23a52f5744ef419e83733d18a6a698ddd14d1e.tar.gz
zsh-1c23a52f5744ef419e83733d18a6a698ddd14d1e.tar.bz2
zsh-1c23a52f5744ef419e83733d18a6a698ddd14d1e.zip
auto-upadate feature will now reset the epoch so that if a user doesn't say yes, it won't ask them again for a while. fixes #1240
Diffstat (limited to 'tools')
-rw-r--r--tools/check_for_upgrade.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index bbd705a1e..612901cbe 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -32,9 +32,10 @@ then
echo "[Oh My Zsh] Would you like to check for updates?"
echo "Type Y to update oh-my-zsh: \c"
read line
- if [ "$line" = Y ] || [ "$line" = y ]
- then
+ if [ "$line" = Y ] || [ "$line" = y ]; then
_upgrade_zsh
+ else
+ _update_zsh_update
fi
fi
fi