android-build.sh: exit with return code 1 if the NDK is not present

This commit is contained in:
Greg Hazel 2020-06-06 00:36:57 -07:00 committed by Frank Denis
parent 2ea21b96e0
commit a230795424

View File

@ -10,7 +10,7 @@ export NDK_API_VERSION_COMPAT=$(echo "$NDK_PLATFORM_COMPAT" | sed 's/^android-//
if [ -z "$ANDROID_NDK_HOME" ]; then if [ -z "$ANDROID_NDK_HOME" ]; then
echo "You should probably set ANDROID_NDK_HOME to the directory containing" echo "You should probably set ANDROID_NDK_HOME to the directory containing"
echo "the Android NDK" echo "the Android NDK"
exit exit 1
fi fi
if [ ! -f ./configure ]; then if [ ! -f ./configure ]; then