From a924d3c171f81a28fe0610e76274a0b7f8473f64 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 25 Oct 2013 07:19:30 +0000 Subject: [PATCH] checkapk: sanity check that we have CARCH set --- checkapk.in | 4 ++++ 1 file changed, 4 insertions(+) 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"