proper self update procedure

This commit is contained in:
Aleksey 2024-04-25 23:46:14 +04:00
parent 7973ea64a6
commit 0900a19d1f
Signed by: tea
GPG Key ID: D9C68D34A3CAE37A
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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