sync repos: and sub repos for cdist

This commit is contained in:
Nico Schottelius 2021-03-16 15:10:24 +01:00
parent dc726cf468
commit 31d2387412

View file

@ -6,18 +6,24 @@ for repo in ~/.ctt \
~/bin \
~/vcs/notes \
~/vcs/nico-dot-cdist \
~/vcs/cdist-workdir \
~/.password-store \
; do
echo $repo
cd $repo
if [ $repo = ~/.password-store ]; then
case $repo in
~/.password-store)
git checkout master
git add .
git commit -m "updated by $0" || true
git pull
git checkout nico-privat
fi
;;
~/vcs/cdist-workdir)
mr update
;;
esac
git add .
git commit -m "updated by $0 on $(hostname)" || true