From 48b98b957ecfb53a9d2925c03a1524197bd87894 Mon Sep 17 00:00:00 2001 From: alexagnelli <51273591+alexagnelli@users.noreply.github.com> Date: Sun, 28 Jun 2020 18:34:02 +0200 Subject: [PATCH] update: only update on a valid affirmative input (#9062) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marc Cornellà --- 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 872f5e820..368b30d25 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -79,8 +79,8 @@ function update_ohmyzsh() { read -r -k 1 option [[ "$option" != $'\n' ]] && echo case "$option" in + [yY$'\n']) update_ohmyzsh ;; [nN]) update_last-updated_file ;; - *) update_ohmyzsh ;; esac fi }