diff --git a/tools.funcs.zsh b/tools.funcs.zsh index 99f87d9..343f6ba 100644 --- a/tools.funcs.zsh +++ b/tools.funcs.zsh @@ -8,7 +8,7 @@ function zshlibs_update() pushd $zshlibs_install 2>&1 > /dev/null zshlibs_log zlibs_update "git pull …" ( - git pull 2>&1 |zshlibs_log zlibs_update & # > "${HOME}/.log/z_zshlibs_update" & + git pull 2>&1 |zshlibs_log zlibs_update & ) zshlibs_log zlibs_update "update done" popd 2>&1 > /dev/null @@ -21,9 +21,15 @@ function zshlibs_update() function zshlibs_boot() { - # ensure log directory + typeset -g zshlibs_bootlevel + if [[ $zshlibs_bootlevel -gt 1 ]] + then + echo "You are likely doing double bootstrap" + fi + zshlibs_bootlevel=0 zshlibs_log zbootstrap "ensure directory '${HOME}/.log/'" zshlibs_ensure -d "${HOME}/.log/" + zshlibs_bootlevel=2 } function zshlibs_ensure()