From 5e68c732d58dc542c86a4f61b5cc22af3a3582e2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 29 Aug 2019 12:11:52 +0200 Subject: local-build-package: check for valid architecture --- bin/local-build-package | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/local-build-package') diff --git a/bin/local-build-package b/bin/local-build-package index 49907a4..ade87c0 100755 --- a/bin/local-build-package +++ b/bin/local-build-package @@ -115,6 +115,11 @@ if [ $# -ne 2 ]; then usage fi +if [ $arch != "i486" ] && [ $arch != "i686" ] && [ $arch != "pentium4" ]; then + >&2 echo "Illegal architecture '$arch', epxecting one of 'i486', 'i686' or 'pentium4'." + usage +fi + if ${bootstrap}; then if [ -z "${bootstrap_host}" ]; then >&2 echo -- '-b option requires a bootstrapping host to be set with -H' -- cgit v1.2.3