zshlibs/tools/zshlibs_update

22 lines
552 B
Plaintext
Raw Normal View History

2024-01-18 15:05:39 +00:00
function zshlibs_update()
{
2024-01-18 15:21:01 +00:00
autoload zshlibs_log
2024-04-25 18:10:43 +00:00
zshlibs_log zlibs_update "sched: $(sched)"
2024-01-18 15:05:39 +00:00
zshlibs_log zlibs_update "preparing self update …"
if [[ -n "$zshlibs_install" ]]
then
zshlibs_log zlibs_update "cd into '$zshlibs_install' …"
pushd $zshlibs_install 2>&1 > /dev/null
zshlibs_log zlibs_update "git pull …"
(
git pull 2>&1 |zshlibs_log zlibs_update &
)
zshlibs_log zlibs_update "update done"
popd 2>&1 > /dev/null
else
echo "\$zshlibs_install not set!"
return 1
zlibs_install
fi
}