add warning about double boot

This commit is contained in:
accel 2022-01-11 20:37:27 +03:00
parent 9032eeecd2
commit 040aa090d8

View File

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