[cpp-linbuild] 03/03: Fail build.sh if any step fails

John W. O'Brien john at saltant.com
Fri Oct 20 16:26:07 UTC 2023


This is an automated email from the git hooks/post-receive script.

obrienjw pushed a commit to branch main
in repository cpp-linbuild.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-linbuild.git;a=commit;h=57fdf5ed95b0ecfe123c4481159821e3ffa10514

commit 57fdf5ed95b0ecfe123c4481159821e3ffa10514
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Fri Oct 20 16:18:20 2023 +0000

    Fail build.sh if any step fails
---
 Makefile        | 2 +-
 common/build.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 1a582c9..a349f7b 100644
--- a/Makefile
+++ b/Makefile
@@ -276,7 +276,7 @@ $$($(1)_$(2)_token): $$($(1)_$(2)_image_token) $(SOURCEDIR)/$$($(1)_DISTFILE) $(
 		-v $$($(2)_products):/opt/build/external/out:z \
 		-v $(srcdir)common:/opt/build/external/in:z \
 		shibboleth/$(2):$($(1)_COMPNAME) \
-		/bin/sh /opt/build/external/in/build.sh $($(1)_COMPNAME)
+		/bin/sh -e /opt/build/external/in/build.sh $($(1)_COMPNAME)
 	touch $$($(1)_$(2)_token)
 $$($(1)_COMPNAME)_$(2): $$($(1)_$(2)_token)
 endef
diff --git a/common/build.sh b/common/build.sh
index 14844d8..85c3665 100644
--- a/common/build.sh
+++ b/common/build.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 if [ $# -ne 1 ]; then
     echo "Usage: $0 component"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list