diff options
author | Marc Cornellà <marc.cornella@live.com> | 2015-11-29 14:34:14 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2015-11-29 14:34:14 +0100 |
commit | ef031dfe8fdf0e8e02839ef3be195583b24017d9 (patch) | |
tree | eab2a53f56ca7b4d6f76324e0abdc0ae02ce126c /tools/check_for_upgrade.sh | |
parent | 46824b39a301087173e0c9af5368333782f9ef9b (diff) | |
parent | d351c76b0460f00ecd3703c9f1c4feabeeb2f3e3 (diff) | |
download | zsh-ef031dfe8fdf0e8e02839ef3be195583b24017d9.tar.gz zsh-ef031dfe8fdf0e8e02839ef3be195583b24017d9.tar.bz2 zsh-ef031dfe8fdf0e8e02839ef3be195583b24017d9.zip |
Merge pull request #4207 from mpscholten/master
Also accept any forms of yes as an answer to the "do you want to update?" prompt
Diffstat (limited to 'tools/check_for_upgrade.sh')
-rw-r--r-- | tools/check_for_upgrade.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 1c897cb36..881bc6c49 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -46,7 +46,7 @@ then else echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c" read line - if [ "$line" = Y ] || [ "$line" = y ] || [ -z "$line" ]; then + if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then _upgrade_zsh else _update_zsh_update |