From 1c8440a8047edfaeaa2bd9325fb2db0729d1245b Mon Sep 17 00:00:00 2001 From: Luca Corbo Date: Sat, 8 May 2021 13:15:48 +0200 Subject: [PATCH] verify_sdk_version: exit with code 1 if the SDK is not found This change updates the exit code for `verify_sdk_version` to `1` function if the SDK is not found. This should help to stop the build in automatic scripts when the SDK_VERSION env variable is set to a invalid value. --- tools/tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools.sh b/tools/tools.sh index 5e4c1aa..a09ec64 100644 --- a/tools/tools.sh +++ b/tools/tools.sh @@ -179,7 +179,7 @@ function verify_sdk_version() done if [ ! $sdk ] ; then echo cant find SDK for OSX $sdkv in tarballs. exiting - exit + exit 1 fi }