proper self update procedure
This commit is contained in:
parent
7973ea64a6
commit
0900a19d1f
@ -1,7 +1,6 @@
|
||||
function zshlibs_update()
|
||||
{
|
||||
autoload zshlibs_log
|
||||
zshlibs_log zlibs_update "sched: $(sched)"
|
||||
zshlibs_log zlibs_update "preparing self update …"
|
||||
if [[ -n "$zshlibs_install" ]]
|
||||
then
|
||||
|
@ -16,7 +16,8 @@ else
|
||||
if zmodload -s zsh/sched
|
||||
then
|
||||
zshlibs_log "zbootstrap" "updating using sched"
|
||||
sched +10 zshlibs_update
|
||||
sched +1 zshlibs_update
|
||||
zshlibs_log "zbootstrap" "scheduled: $(sched)"
|
||||
else
|
||||
zshlibs_log "zbootstrap" "sched not available, updating synchroniously"
|
||||
zshlibs_update
|
||||
|
Loading…
Reference in New Issue
Block a user