From 124f8f37cd90d278476c8737e26050822e427696 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 26 May 2021 11:44:44 +0200 Subject: [PATCH] make a shortcut for repo sync --- sync-all-repos | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sync-all-repos b/sync-all-repos index 8ea2e30..f472324 100755 --- a/sync-all-repos +++ b/sync-all-repos @@ -1,12 +1,18 @@ #!/bin/sh +onlystatic="" + +if [ $# -gt 1 ]; then + onlystatic=yes +fi + set -e for repo in ~/.ctt \ ~/bin \ ~/vcs/notes \ ~/vcs/nico-dot-cdist \ - ~/vcs/cdist-workdir \ + ~/vcs/cdist-workdir/dot-cdist \ ~/.password-store \ ; do echo $repo @@ -35,6 +41,10 @@ done # We cannot commit as we do not know the state, but we # can ensure everything committed before is pushed out +if [ $onlystatic ]; then + exit 0 +fi + set +e for repo in ~/vcs/*; do