From 13736a33f8c1f054944c1455aecc18b552de6f4f Mon Sep 17 00:00:00 2001 From: quackerd Date: Mon, 8 Mar 2021 05:34:14 -0500 Subject: [PATCH] remove submodules and add autoupdate --- libozsh.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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