ef031dfe8fdf0e8e02839ef3be195583b24017d9

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Merge pull request #4207 from mpscholten/master

Also accept any forms of yes as an answer to the "do you want to update?" prompt

Diff

 1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
 2index 1c897cb36a7a3daf7a21e97580cc7da5283b96e9..881bc6c4993415f3e881a63129bf7ef02be264c2 100644
 3--- a/tools/check_for_upgrade.sh
 4+++ b/tools/check_for_upgrade.sh
 5@@ -46,7 +46,7 @@ then
 6     else
 7       echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
 8       read line
 9-      if [ "$line" = Y ] || [ "$line" = y ] || [ -z "$line" ]; then
10+      if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
11         _upgrade_zsh
12       else
13         _update_zsh_update