From 929481f3bfe96fe262848fd765a24131893da312 Mon Sep 17 00:00:00 2001 From: Matthew Hansen Date: Wed, 4 Sep 2024 16:19:31 -0700 Subject: [PATCH] Call command directly or exit 1 --- .github/workflows/docker-image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 499a73cf..3f9f1e8d 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -19,5 +19,8 @@ jobs: run: | # find the build.sh scripts and execute them echo "Running all build.sh scripts in repo" - find . -iname 'build.sh' -exec ./{} \; + for f in $(find . -iname 'build.sh') + do + $f || exit 1 + done echo "Done running build.sh scripts" \ No newline at end of file