remove submodules and add autoupdate
This commit is contained in:
parent
d32b2f2bf3
commit
19b48191fd
@ -50,7 +50,7 @@ function ozsh_update {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ozsh_autoupdate {
|
function ozsh_autoupdate {
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user