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.
This commit is contained in:
Luca Corbo 2021-05-08 13:15:48 +02:00 committed by GitHub
parent 5771a84795
commit 1c8440a804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ function verify_sdk_version()
done done
if [ ! $sdk ] ; then if [ ! $sdk ] ; then
echo cant find SDK for OSX $sdkv in tarballs. exiting echo cant find SDK for OSX $sdkv in tarballs. exiting
exit exit 1
fi fi
} }