From b89a8295cfd823e0f6b4ec7c8b38d6e0e8838ff5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 28 Nov 2018 10:43:30 +0000 Subject: [PATCH] Ignore errors from non-existent files when trying to find aapt --- util/buildscripts/scripts/compile_win32.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/buildscripts/scripts/compile_win32.sh b/util/buildscripts/scripts/compile_win32.sh index 51cf141f3..d8e7fcf0e 100755 --- a/util/buildscripts/scripts/compile_win32.sh +++ b/util/buildscripts/scripts/compile_win32.sh @@ -99,7 +99,7 @@ if uname -a | grep -iq msys; then GENERATOR="MSYS Makefiles" fi -AAPT=$(ls $ANDROID_SDK/build-tools/*/aapt{,.exe} | tail -n 1) +AAPT=$(ls $ANDROID_SDK/build-tools/*/aapt{,.exe} 2>/dev/null | tail -n 1) # Check to see if we already have this built, and don't rebuild VERSION32=$($AAPT dump badging build-android-arm32/bin/*apk 2>/dev/null | grep -Eo "versionName='[0-9a-f]*'" | grep -Eo "'.*'" | tr -d "'")