This commit is contained in:
quackerd 2021-04-22 02:57:45 -04:00
parent f976e263e5
commit 4386ecec6e

View File

@ -55,7 +55,7 @@ function ozsh_update {
}
function ozsh_autoupdate {
local timediff=$(( ( $(strftime -r %Y-%m-%d $(date +%Y-%m-%d)) - $(strftime -r %Y-%m-%d $(cat $OZSH_LASTUPDATE_FILE)) ) / 86400 ))
local timediff=$(( ( $(date +%s) - $(cat $OZSH_LASTUPDATE_FILE) ) / 86400 ))
if [ "$timediff" -ge "7" ]; then
vared -p 'Would you like to update ozsh? [y/N]: ' -c answer