From c8ef736370483df6feb761b49fccaa6790b6f8c2 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 23 Oct 2017 15:10:00 +0200 Subject: jenkins: bail early if $MAKE env var is not set If $MAKE is unset, it produces confusing errors, rather check explicitly. Change-Id: I59b111dfdee4e1edea04155144f01d99f5f72aa1 --- contrib/jenkins_common.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'contrib') diff --git a/contrib/jenkins_common.sh b/contrib/jenkins_common.sh index 6cfa3347..bc4ac65b 100644 --- a/contrib/jenkins_common.sh +++ b/contrib/jenkins_common.sh @@ -2,6 +2,12 @@ set -ex +if [ -z "$MAKE" ]; then + set +x + echo "Error: you need to set \$MAKE before invoking, e.g. MAKE=make" + exit 1 +fi + verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") prep_build() { -- cgit v1.2.3