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