48b98b957ecfb53a9d2925c03a1524197bd87894

Author
alexagnelli <51273591+alexagnelli@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

update: only update on a valid affirmative input (#9062)

Co-authored-by: Marc Cornellà <marc.cornella@live.com>

Diff

 1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
 2index 872f5e820ecfebdd63d95a5051936d67c7444baf..368b30d25d6a9b35e057f2df6830434688f2ebae 100644
 3--- a/tools/check_for_upgrade.sh
 4+++ b/tools/check_for_upgrade.sh
 5@@ -79,8 +79,8 @@ function update_ohmyzsh() {
 6         read -r -k 1 option
 7         [[ "$option" != $'\n' ]] && echo
 8         case "$option" in
 9+            [yY$'\n']) update_ohmyzsh ;;
10             [nN]) update_last-updated_file ;;
11-            *) update_ohmyzsh ;;
12         esac
13     fi
14 }