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
|
2024-04-26 02:16:04 +00:00
|
|
|
echo '$zshlibs_install not set!'
|
2024-01-18 15:05:39 +00:00
|
|
|
return 1
|
|
|
|
zlibs_install
|
|
|
|
fi
|
|
|
|
}
|