1c23a52f5744ef419e83733d18a6a698ddd14d1e

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

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

Diff

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