From 5c191055a1fbecc1fdbd46d240c96cf50817908e Mon Sep 17 00:00:00 2001 From: sickcodes <65906298+sickcodes@users.noreply.github.com> Date: Sun, 20 Feb 2022 20:38:45 +0000 Subject: [PATCH] Cleanup properly after download. Verifying compatibility with other users of this script first. --- android-extract-ndk.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/android-extract-ndk.sh b/android-extract-ndk.sh index bcb162f..14f2044 100644 --- a/android-extract-ndk.sh +++ b/android-extract-ndk.sh @@ -40,7 +40,13 @@ find system \( -name 'libndk_translation*' -o -name '*arm*' -o -name 'ndk_transl pwd -stat native-bridge.tar +stat native-bridge.tar || exit 1 + +mv native-bridge.tar .. + +rm -rf ./working + +stat native-bridge.tar || exit 1 echo "${PWD}/native-bridge.tar"