port to function based script
This commit is contained in:
parent
4d93b9e061
commit
a8ca69a844
|
@ -58,6 +58,10 @@ function clone_bootstrap_to_sources_dir () {
|
||||||
local dst=~/sources/bootstrap
|
local dst=~/sources/bootstrap
|
||||||
if ! [[ -d $dst ]]; then
|
if ! [[ -d $dst ]]; then
|
||||||
git clone ssh://gitea@86thumbs.net:3022/waldek/bootstrap.git $dst && echo "cloned bootstrap dir"
|
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
|
fi
|
||||||
echo "--- ${FUNCNAME[0]} done"
|
echo "--- ${FUNCNAME[0]} done"
|
||||||
}
|
}
|
||||||
|
@ -69,7 +73,8 @@ function install_oh_my_zsh () {
|
||||||
cp $dst/templates/zshrc.zsh-template ~/.zshrc
|
cp $dst/templates/zshrc.zsh-template ~/.zshrc
|
||||||
else
|
else
|
||||||
cd $dst
|
cd $dst
|
||||||
git pull
|
git pull && echo "updated $dst"
|
||||||
|
cd -
|
||||||
fi
|
fi
|
||||||
echo "--- ${FUNCNAME[0]} done"
|
echo "--- ${FUNCNAME[0]} done"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue