summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-25 07:19:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-25 07:19:30 +0000
commita924d3c171f81a28fe0610e76274a0b7f8473f64 (patch)
tree99a32329075d98649d83eb4c1e003d446295f5c3
parent0c02afc69441095eba819cbe572b74c45de878b8 (diff)
downloadabuild-a924d3c171f81a28fe0610e76274a0b7f8473f64.tar.gz
abuild-a924d3c171f81a28fe0610e76274a0b7f8473f64.tar.bz2
abuild-a924d3c171f81a28fe0610e76274a0b7f8473f64.tar.xz
abuild-a924d3c171f81a28fe0610e76274a0b7f8473f64.zip
checkapk: sanity check that we have CARCH set
-rw-r--r--checkapk.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/checkapk.in b/checkapk.in
index 0d31a0c..98da12a 100644
--- a/checkapk.in
+++ b/checkapk.in
@@ -39,6 +39,10 @@ if ! [ -f APKBUILD ]; then
die 'must be run in the directory of a built package'
fi
+if ! [ -n "$CARCH" ]; then
+ die "failed to detect CARCH"
+fi
+
. ./APKBUILD
startdir="$PWD"