From 665b6710aab85062dbaab1ca2fa11fd36d0b0080 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 1 Nov 2019 19:19:17 +0100 Subject: [PATCH] git_auto_update: Fixed check if reload was successful --- roles/git_auto_update/templates/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/git_auto_update/templates/update.sh b/roles/git_auto_update/templates/update.sh index dde67d0..5f4df57 100644 --- a/roles/git_auto_update/templates/update.sh +++ b/roles/git_auto_update/templates/update.sh @@ -24,7 +24,7 @@ if [ -z "$GPG_FINGERPRINT" ] || git verify-tag --raw "$TAG" 2>&1 | grep " VALIDS git reset --hard; git checkout -q "$TAG"; chown -R "$DEST_USER:$DEST_GROUP" .; - if sh -c {{ reload_command | default('') | quote }}; then + if ! sh -c {{ reload_command | default('') | quote }}; then echo "Failed during reload" >&2; exit 2; fi