From e2dcc5cf7ced5f7e368c42e8006da03ce113fac7 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Fri, 19 Aug 2022 21:00:45 +0200 Subject: [PATCH] When .disabled is present, do not pull repo --- conf-sync.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf-sync.sh b/conf-sync.sh index 1ae243f..089358b 100755 --- a/conf-sync.sh +++ b/conf-sync.sh @@ -8,6 +8,10 @@ for dir in $sync_directory/*; do echo "$dir: not a Git repo" continue fi + if [ -f $dir/.disabled ]; then + echo "$dir update is disabled." + continue + fi git -C $dir fetch 2>/dev/null >/dev/null UPSTREAM=${1:-'@{u}'} LOCAL=$(git -C $dir rev-parse @)