diff --git a/libozsh.zsh b/libozsh.zsh index 625cf8c..235a444 100644 --- a/libozsh.zsh +++ b/libozsh.zsh @@ -54,7 +54,7 @@ function ozsh_autoupdate { local timediff=$(( ($(date --date="$(date)" +%s) - $(date --date="$(cat $OZSH_LASTUPDATE_FILE)" +%s) ) / (60*60*24) )) if [ "$timediff" -ge "7" ]; then vared -p 'Would you like to update ozsh? [y/N]: ' -c answer - if [ "$answer" == "y" || "$answer" == "Y" ]; then + if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then ozsh_update fi fi