remove submodules and add autoupdate
This commit is contained in:
parent
ec0ac75c24
commit
13736a33f8
@ -54,7 +54,7 @@ function ozsh_autoupdate {
|
|||||||
local timediff=$(( ($(date --date="$(date)" +%s) - $(date --date="$(cat $OZSH_LASTUPDATE_FILE)" +%s) ) / (60*60*24) ))
|
local timediff=$(( ($(date --date="$(date)" +%s) - $(date --date="$(cat $OZSH_LASTUPDATE_FILE)" +%s) ) / (60*60*24) ))
|
||||||
if [ "$timediff" -ge "7" ]; then
|
if [ "$timediff" -ge "7" ]; 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
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user