From d351c76b0460f00ecd3703c9f1c4feabeeb2f3e3 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Mon, 3 Aug 2015 14:50:57 +0200 Subject: [PATCH] Also accept any forms of yes as an answer to the "do you want to update?" prompt --- tools/check_for_upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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