From f976e263e59063ce24ce515cb705e237f2bca574 Mon Sep 17 00:00:00 2001 From: quackerd Date: Mon, 8 Mar 2021 06:29:38 -0500 Subject: [PATCH] fix date --- libozsh.zsh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libozsh.zsh b/libozsh.zsh index 4bf697b..bf4e4ab 100644 --- a/libozsh.zsh +++ b/libozsh.zsh @@ -57,13 +57,6 @@ 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 )) - echo "last cmd is $?" - - if [ ! $? -eq 0 ]; then - # recreate the file if the command fails - ozsh_write_update_date - fi - if [ "$timediff" -ge "7" ]; then vared -p 'Would you like to update ozsh? [y/N]: ' -c answer if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then