summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 25bb041..8856eaf 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -145,8 +145,10 @@ arch=$(opkg print-architecture | sed -n \
's/^arch \([^ -][^ -]*-[^ -][^ -]*-[^ -][^ -]*\) [0-9][0-9]*$/\1/p')
if [ -z "${arch}" ]; then
printf 'opkbuild: Error: No installable architecture found\n' >&2
+ exit 1
elif [ $(echo "${arch}" | wc -l) -gt 1 ]; then
printf 'opkbuild: Error: Multiple installable architectures found\n' >&2
+ exit 1
fi
# Make work area.