From 75175f8ec6ddc55d7a9ebfa8128adae867874bb9 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 28 Dec 2021 22:41:31 +0100 Subject: [PATCH] android-build: use -z --- dist-build/android-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist-build/android-build.sh b/dist-build/android-build.sh index 3a80d8f4..07413a96 100755 --- a/dist-build/android-build.sh +++ b/dist-build/android-build.sh @@ -18,7 +18,7 @@ if [ ! -f ./configure ]; then exit 1 fi -if [ "$TARGET_ARCH" = '' ] || [ "$ARCH" = '' ] || [ "$HOST_COMPILER" = '' ]; then +if [ -z "$TARGET_ARCH" ] || [ -z "$ARCH" ] || [ -z "$HOST_COMPILER" ]; then echo "You shouldn't use android-build.sh directly, use android-[arch].sh instead" >&2 exit 1 fi