port to function based script

This commit is contained in:
waldek 2022-08-24 21:05:50 +02:00
parent 4d93b9e061
commit a8ca69a844
1 changed files with 6 additions and 1 deletions

View File

@ -58,6 +58,10 @@ function clone_bootstrap_to_sources_dir () {
local dst=~/sources/bootstrap
if ! [[ -d $dst ]]; then
git clone ssh://gitea@86thumbs.net:3022/waldek/bootstrap.git $dst && echo "cloned bootstrap dir"
else
cd $dst
git pull && echo "updated $dst"
cd -
fi
echo "--- ${FUNCNAME[0]} done"
}
@ -69,7 +73,8 @@ function install_oh_my_zsh () {
cp $dst/templates/zshrc.zsh-template ~/.zshrc
else
cd $dst
git pull
git pull && echo "updated $dst"
cd -
fi
echo "--- ${FUNCNAME[0]} done"
}