From 3f4f1605526c99262e1b3814cf9480f555298d75 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 15 Nov 2017 21:03:28 +0100 Subject: android: Terminate build.sh on unknown arguments Previous code ended up in a eternal loop on unknown arguments. Signed-off-by: Anton Lundin --- packaging/android/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/android/build.sh b/packaging/android/build.sh index 7feb43bcd..1a0120879 100755 --- a/packaging/android/build.sh +++ b/packaging/android/build.sh @@ -64,7 +64,11 @@ while [ "$#" -gt 0 ] ; do arm|x86) ARCH=$1 shift - ;; + ;; + *) + echo "Unknown argument $1" + exit 1 + ;; esac done -- cgit v1.2.3-70-g09d2