summaryrefslogtreecommitdiff
path: root/tools/check_for_upgrade.sh
diff options
context:
space:
mode:
authorMarc Scholten <marc@pedigital.de>2015-08-03 14:50:57 +0200
committerMarc Scholten <marc@pedigital.de>2015-08-03 14:50:57 +0200
commitd351c76b0460f00ecd3703c9f1c4feabeeb2f3e3 (patch)
tree4e3fa13274158c30ae83f546eba1af6928ee9980 /tools/check_for_upgrade.sh
parent3d5b3430fd9da12f6e33f534e487fe9b18928ac7 (diff)
downloadzsh-d351c76b0460f00ecd3703c9f1c4feabeeb2f3e3.tar.gz
zsh-d351c76b0460f00ecd3703c9f1c4feabeeb2f3e3.tar.bz2
zsh-d351c76b0460f00ecd3703c9f1c4feabeeb2f3e3.zip
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.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index 5afd83c1e..11caa447e 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -43,7 +43,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