Skip to content

Commit f2de544

Browse files
committed
Execute pre-run commands with -eo pipefail
1 parent 512ac83 commit f2de544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/actions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function execute_run_commands() {
5555
if [[ -n $TERRAFORM_PRE_RUN ]]; then
5656
echo "Executing init commands specified in 'TERRAFORM_PRE_RUN' environment variable"
5757
printf "%s" "$TERRAFORM_PRE_RUN" > /.prerun.sh
58-
bash -x /.prerun.sh
58+
bash -xeo pipefail /.prerun.sh
5959
fi
6060
}
6161

0 commit comments

Comments
 (0)