From d26e9ef9c6a7942e4dc9f9decd264bb4d3231837 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 05 Apr 2012 19:21:48 -0400 Subject: Exit on error finding an installable architecture. --- (limited to 'src') 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. -- cgit v0.9.1