android: Terminate build.sh on unknown arguments

Previous code ended up in a eternal loop on unknown arguments.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
Anton Lundin 2017-11-15 21:03:28 +01:00 committed by Dirk Hohndel
parent f9c85fa755
commit 3f4f160552

View file

@ -64,7 +64,11 @@ while [ "$#" -gt 0 ] ; do
arm|x86)
ARCH=$1
shift
;;
;;
*)
echo "Unknown argument $1"
exit 1
;;
esac
done