From 4a1658858cbd9dac966195265eb44d4ee5ddfa4c Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Tue, 20 Jan 2015 16:27:53 +0800 Subject: [PATCH] Only read 1 char when updating --- 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 b2b356e0c..ef18a5505 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?" echo "Type Y to update oh-my-zsh: \c" - read line + read -k 1 line; echo if [ "$line" = Y ] || [ "$line" = y ]; then _upgrade_zsh else