Skip to content

Commit 63138bb

Browse files
committed
Better checking for swift-sdk install location
1 parent 5404211 commit 63138bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/install-and-build-with-sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ install_android_sdk() {
575575
# guess some common places where the swift-sdks file lives
576576
cd ~/Library/org.swift.swiftpm || cd ~/.local/swiftpm || cd ~/.swiftpm || cd /root/.swiftpm
577577

578-
if [[ ! -d "${ANDROID_NDK_HOME}" ]]; then
578+
if [[ ! -d "${ANDROID_NDK_HOME:-}" ]]; then
579579
# download and install the Android NDK
580580
local android_ndk_version=r27d
581581
curl --retry=3 -fsSLO https://dl.google.com/android/repository/android-ndk-"${android_ndk_version}"-"$(uname -s)".zip

0 commit comments

Comments
 (0)