diff --git a/system-images/android/sdk/build-cmake-native b/system-images/android/sdk/build-cmake-native --- a/system-images/android/sdk/build-cmake-native +++ b/system-images/android/sdk/build-cmake-native @@ -25,12 +25,12 @@ cmake "$srcdir"/$name/$EXTRA_CMAKE_SUBDIR $@ cmake --build . -- install -j`nproc` popd -if [ "$PERSIST" ]; then +if [ "$PERSIST" -eq 1 ]; then echo "leaving the build directory intact" else rm -rf $BUILDROOT/$name - if [ "$cloned" ]; then + if [ "$cloned" -eq 1 ]; then rm -rf src/$name fi fi