From d72aa414469a8b9863eb90a8673be6ad9a239a93 Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Sat, 17 Apr 2021 15:47:51 +0100 Subject: [PATCH] Allow ANDROID_NDK_HOME to be read from env --- app/src/make.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/make.sh b/app/src/make.sh index 1b62a8b..a415b1c 100644 --- a/app/src/make.sh +++ b/app/src/make.sh @@ -77,13 +77,13 @@ function try() { } pushd ../.. -ANDROID_NDK_HOME="$(./gradlew -q printNDKPath)" +"${ANDROID_NDK_HOME:=$(./gradlew -q printNDKPath)}" CK_RELEASE_TAG=v"$(./gradlew -q printVersionName)" popd while [ ! -d "$ANDROID_NDK_HOME" ]; do - echo "Path to ndk-bundle not found. Please enter the full path" - read -p '' ANDROID_NDK_HOME + echo "Path to ndk-bundle not found" + exit -1 done getHostTag