add som logging in zbootstrap
This commit is contained in:
parent
765daf0718
commit
5bca73a6e9
@ -7,15 +7,18 @@ then
|
|||||||
typeset -g zshlibs_install="${HOME}/.local/zshlibs"
|
typeset -g zshlibs_install="${HOME}/.local/zshlibs"
|
||||||
fi
|
fi
|
||||||
fpath+=(${zshlibs_install}/tools)
|
fpath+=(${zshlibs_install}/tools)
|
||||||
autoload zshlibs_update
|
autoload zshlibs_update zshlibs_log
|
||||||
if ! [[ -d ${zshlibs_install} ]]
|
if ! [[ -d ${zshlibs_install} ]]
|
||||||
then
|
then
|
||||||
zlibs_install
|
zlibs_install
|
||||||
else
|
else
|
||||||
|
zshlibs_log "zbootstrap" "preparing update"
|
||||||
if zmodload -s zsh/sched
|
if zmodload -s zsh/sched
|
||||||
then
|
then
|
||||||
|
zshlibs_log "zbootstrap" "updating using sched"
|
||||||
sched +0 zshlibs_update
|
sched +0 zshlibs_update
|
||||||
else
|
else
|
||||||
|
zshlibs_log "zbootstrap" "sched not available, updating synchroniously"
|
||||||
zshlibs_update
|
zshlibs_update
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user