From 0900a19d1f8051d9ae89f4f994471349ff8fb6fa Mon Sep 17 00:00:00 2001 From: Aleksey Date: Thu, 25 Apr 2024 23:46:14 +0400 Subject: [PATCH] proper self update procedure --- tools/zshlibs_update | 1 - zbootstrap.zsh | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/zshlibs_update b/tools/zshlibs_update index 5871708..d486790 100644 --- a/tools/zshlibs_update +++ b/tools/zshlibs_update @@ -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 diff --git a/zbootstrap.zsh b/zbootstrap.zsh index 40cb7f3..3c0ef19 100644 --- a/zbootstrap.zsh +++ b/zbootstrap.zsh @@ -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