From 040aa090d8b66392ca5121fe0f0a196e679de44c Mon Sep 17 00:00:00 2001 From: accel Date: Tue, 11 Jan 2022 20:37:27 +0300 Subject: [PATCH] add warning about double boot --- tools.funcs.zsh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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()