From 4386ecec6ebd6fe7a9015b9e808cbf85082934bc Mon Sep 17 00:00:00 2001 From: quackerd Date: Thu, 22 Apr 2021 02:57:45 -0400 Subject: [PATCH] new --- libozsh.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libozsh.zsh b/libozsh.zsh index bf4e4ab..517f304 100644 --- a/libozsh.zsh +++ b/libozsh.zsh @@ -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