From 8d5e30a5221fcb51b3edbd1ec00e7519b42762eb Mon Sep 17 00:00:00 2001 From: David Schwartz Date: Mon, 26 Feb 2018 22:06:17 -0500 Subject: [PATCH] Better read command syntax --- tools/check_for_upgrade.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index a57f6da0f..438567feb 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -42,9 +42,7 @@ if mkdir "$ZSH/log/update.lock" 2>/dev/null; then if [ "$DISABLE_UPDATE_PROMPT" = "true" ]; then _upgrade_zsh 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 read -q line\?"[Oh My Zsh] Would you like to check for updates? [Y/n]: " && echo; then _upgrade_zsh else _update_zsh_update