From eea0c665a2142dccc090d03b9f65eed617df7372 Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Tue, 29 Nov 2022 08:20:51 +0000 Subject: [PATCH] Don't warn about modified git dir twice --- lib/update-bridgehead.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/update-bridgehead.sh b/lib/update-bridgehead.sh index 3201fc5..cc8d56f 100755 --- a/lib/update-bridgehead.sh +++ b/lib/update-bridgehead.sh @@ -38,7 +38,6 @@ for DIR in /etc/bridgehead $(pwd); do log "INFO" "Checking for updates to git repo $DIR ..." OUT="$(git -C $DIR status --porcelain)" if [ -n "$OUT" ]; then - log WARN "The working directory $DIR is modified. Changed files: $OUT" report_error log "The working directory $DIR is modified. Changed files: $OUT" fi if [ "$(git -C $DIR config --get credential.helper)" != "$CREDHELPER" ]; then