From 19b48191fd9d152a1af2db5076019fc5add62619 Mon Sep 17 00:00:00 2001 From: quackerd Date: Mon, 8 Mar 2021 05:07:13 -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 db13a46..8329078 100644 --- a/libozsh.zsh +++ b/libozsh.zsh @@ -50,7 +50,7 @@ function ozsh_update { } function ozsh_autoupdate { - timediff = $(( ($(date --date="$(date)" +%s) - $(date --date="$(cat $OZSH_LASTUPDATE_FILE)" +%s) ) / (60*60*24) )) + 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