summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoralexagnelli <51273591+alexagnelli@users.noreply.github.com>2020-06-28 18:34:02 +0200
committerGitHub <noreply@github.com>2020-06-28 18:34:02 +0200
commit48b98b957ecfb53a9d2925c03a1524197bd87894 (patch)
tree3b245ec94be18f83fe2cafa93b69858b1d0da51b /tools
parent6152ac30bede172ba0422a8610dc796948ae1546 (diff)
downloadzsh-48b98b957ecfb53a9d2925c03a1524197bd87894.tar.gz
zsh-48b98b957ecfb53a9d2925c03a1524197bd87894.tar.bz2
zsh-48b98b957ecfb53a9d2925c03a1524197bd87894.zip
update: only update on a valid affirmative input (#9062)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/check_for_upgrade.sh2
1 files changed, 1 insertions, 1 deletions
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
}