From 31d2387412f910dd18735c1f70f602bba1eeb9c2 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 16 Mar 2021 15:10:24 +0100 Subject: [PATCH] sync repos: and sub repos for cdist --- sync-all-repos | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/sync-all-repos b/sync-all-repos index f54622f..8ea2e30 100755 --- a/sync-all-repos +++ b/sync-all-repos @@ -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 - git checkout master - git add . - git commit -m "updated by $0" || true - git pull - git checkout nico-privat - fi + case $repo in + ~/.password-store) + git checkout master + git add . + git commit -m "updated by $0" || true + git pull + git checkout nico-privat + ;; + ~/vcs/cdist-workdir) + mr update + ;; + esac git add . git commit -m "updated by $0 on $(hostname)" || true