Skip to content

Commit 0346d7f

Browse files
committed
Tolerate missing linux folder when attempting to clean up unnecessary build artifacts
1 parent ae32e31 commit 0346d7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swift-ci/sdks/android/scripts/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ for arch in $archs; do
529529
arch_triple="arm-linux-androideabi"
530530
fi
531531

532-
rm -r lib/swift{,_static}/{clang,linux}
532+
# need force rm in case linux is not present (when not running tests)
533+
rm -rf lib/swift{,_static}/{clang,linux}
533534
mv lib/swift lib/swift-$arch
534535
ln -s ../swift/clang lib/swift-$arch/clang
535536

0 commit comments

Comments
 (0)