1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 15:30:40 +01:00

Also accept any forms of yes as an answer to the "do you want to update?" prompt

This commit is contained in:
Marc Scholten
2015-08-03 14:50:57 +02:00
parent 3d5b3430fd
commit d351c76b04

View File

@@ -43,7 +43,7 @@ then
else else
echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c" echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
read line read line
if [ "$line" = Y ] || [ "$line" = y ] || [ -z "$line" ]; then if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
_upgrade_zsh _upgrade_zsh
else else
_update_zsh_update _update_zsh_update