d351c76b0460f00ecd3703c9f1c4feabeeb2f3e3

Author
Marc Scholten <marc@pedigital.de>
Committer
Marc Scholten <marc@pedigital.de>
Date

Message

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 5afd83c1e18da0bbd015c1aff308925f749a395c..11caa447e6b283723483a39e47f660dc408d591d 100644
 3--- a/tools/check_for_upgrade.sh
 4+++ b/tools/check_for_upgrade.sh
 5@@ -43,7 +43,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