zshlibs/tools/zshlibs_update

21 lines
506 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-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!'
2024-01-18 15:05:39 +00:00
return 1
zlibs_install
fi
}