Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-08-29 12:11:52 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-08-29 12:11:52 +0200
commit5e68c732d58dc542c86a4f61b5cc22af3a3582e2 (patch)
tree825672401eeff596efa2162fa62789683078d13f
parent678864eb70a3ef83c2dc76958aad02ba0259718c (diff)
local-build-package: check for valid architecture
-rwxr-xr-xbin/local-build-package5
1 files changed, 5 insertions, 0 deletions
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'