new
This commit is contained in:
parent
f976e263e5
commit
4386ecec6e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user