From 511d39c1792d8bd2e57d6c2a766157e941b24925 Mon Sep 17 00:00:00 2001 From: Kevin Sapper Date: Wed, 12 Feb 2020 16:20:27 +0100 Subject: [PATCH] Problem: Unable to overwrite the ANDROID_BUILD_DIR Solution: Use pwd only a default value --- builds/android/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builds/android/build.sh b/builds/android/build.sh index b9d61878..1f78a44d 100755 --- a/builds/android/build.sh +++ b/builds/android/build.sh @@ -6,10 +6,10 @@ function usage { # Use directory of current script as the build directory and working directory cd "$( dirname "${BASH_SOURCE[0]}" )" -ANDROID_BUILD_DIR="$(pwd)" +ANDROID_BUILD_DIR="${ANDROID_BUILD_DIR:-`pwd`}" # Get access to android_build functions and variables -source ${ANDROID_BUILD_DIR}/android_build_helper.sh +source ./android_build_helper.sh # Choose a C++ standard library implementation from the ndk ANDROID_BUILD_CXXSTL="gnustl_shared_49"