Update libozsh.zsh
This commit is contained in:
parent
9a6c7c1270
commit
90520fe49c
@ -57,7 +57,7 @@ function ozsh_update {
|
|||||||
function ozsh_autoupdate {
|
function ozsh_autoupdate {
|
||||||
local timediff=$(( ( $(date +%s) - $(cat $OZSH_LASTUPDATE_FILE) ) / 86400 ))
|
local timediff=$(( ( $(date +%s) - $(cat $OZSH_LASTUPDATE_FILE) ) / 86400 ))
|
||||||
|
|
||||||
if [ "$timediff" -ge "7" ]; then
|
if [ "$timediff" -ge "60" ]; then
|
||||||
vared -p 'Would you like to update ozsh? [y/N]: ' -c answer
|
vared -p 'Would you like to update ozsh? [y/N]: ' -c answer
|
||||||
if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
|
if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
|
||||||
ozsh_update
|
ozsh_update
|
||||||
|
Loading…
Reference in New Issue
Block a user