From 8b55dc1272a4df26742cb9437973a965e293988f Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 10 Apr 2024 15:10:50 +0200 Subject: [PATCH] sh tasks: Run with set -e This ensures that the task doesn't continue when an error happened. This is also best practice in bash. We noticed an error at https://github.com/puppetlabs/puppetlabs-postgresql/actions/runs/8630671386/job/23657771763?pr=1488 --- tasks/bash.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/bash.sh b/tasks/bash.sh index 1c16303..88a7bfb 100755 --- a/tasks/bash.sh +++ b/tasks/bash.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + # This script may be called outside of a task, e.g. by puppet_agent # so we have to just paste this code here. *grumbles* # Exit with an error message and error code, defaulting to 1