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

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
master
alexagnelli 6 years ago committed by GitHub
parent 6152ac30be
commit 48b98b957e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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
}

Loading…
Cancel
Save