summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-11-29 14:34:14 +0100
committerMarc Cornellà <marc.cornella@live.com>2015-11-29 14:34:14 +0100
commitef031dfe8fdf0e8e02839ef3be195583b24017d9 (patch)
treeeab2a53f56ca7b4d6f76324e0abdc0ae02ce126c /tools
parent46824b39a301087173e0c9af5368333782f9ef9b (diff)
parentd351c76b0460f00ecd3703c9f1c4feabeeb2f3e3 (diff)
downloadzsh-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')
-rw-r--r--tools/check_for_upgrade.sh2
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