Skip to content

Commit 17d07b0

Browse files
committed
gh action
1 parent 115915c commit 17d07b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/build_openssl_android.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ INSTALL_DIR="${BUILD_ROOT}/android-build"
1212
# Pick your NDK installation here
1313
# The `setup-ndk` GitHub action exports `ANDROID_NDK_HOME`.
1414
# 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
15+
# Use `${VAR-}` to avoid unbound variable errors with `set -u`.
16+
if [ -z "${NDK_HOME-}" ]; then
17+
if [ -n "${ANDROID_NDK_HOME-}" ]; then
1718
NDK_HOME="${ANDROID_NDK_HOME}"
1819
else
1920
# Fallback for local development on macOS

0 commit comments

Comments
 (0)