From a8ca69a844592a4d78efc95af217c5672e1ca797 Mon Sep 17 00:00:00 2001 From: waldek Date: Wed, 24 Aug 2022 21:05:50 +0200 Subject: [PATCH] port to function based script --- bootstrap.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 5259027..f4b7cf2 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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" }