We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 115915c commit 17d07b0Copy full SHA for 17d07b0
scripts/build_openssl_android.sh
@@ -12,8 +12,9 @@ INSTALL_DIR="${BUILD_ROOT}/android-build"
12
# Pick your NDK installation here
13
# The `setup-ndk` GitHub action exports `ANDROID_NDK_HOME`.
14
# The script will default to `ANDROID_NDK_HOME` if `NDK_HOME` is not set.
15
-if [ -z "${NDK_HOME}" ]; then
16
- if [ -n "${ANDROID_NDK_HOME}" ]; then
+# Use `${VAR-}` to avoid unbound variable errors with `set -u`.
+if [ -z "${NDK_HOME-}" ]; then
17
+ if [ -n "${ANDROID_NDK_HOME-}" ]; then
18
NDK_HOME="${ANDROID_NDK_HOME}"
19
else
20
# Fallback for local development on macOS
0 commit comments