Better read command syntax

This commit is contained in:
David Schwartz 2018-02-26 22:06:17 -05:00
commit 8d5e30a522
No known key found for this signature in database
GPG key ID: AFDFBC0235E7F2A9

View file

@ -42,9 +42,7 @@ if mkdir "$ZSH/log/update.lock" 2>/dev/null; then
if [ "$DISABLE_UPDATE_PROMPT" = "true" ]; then
_upgrade_zsh
else
echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
read line
if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
if read -q line\?"[Oh My Zsh] Would you like to check for updates? [Y/n]: " && echo; then
_upgrade_zsh
else
_update_zsh_update