summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-07-25 07:06:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 11:08:13 +0000
commit9a63a1722890cbd1b80b6d6df7d2c527f82809f8 (patch)
treee434749278f352645ef7784c7f98005aac0c18ea
parenteb0a7d081131a287983753d89933c499fc1864c8 (diff)
downloadabuild-9a63a1722890cbd1b80b6d6df7d2c527f82809f8.tar.gz
abuild-9a63a1722890cbd1b80b6d6df7d2c527f82809f8.tar.bz2
abuild-9a63a1722890cbd1b80b6d6df7d2c527f82809f8.tar.xz
abuild-9a63a1722890cbd1b80b6d6df7d2c527f82809f8.zip
abuild: exit with success if arch is disabled
the set -e made script exit early
-rw-r--r--abuild.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index 595f09b..0370ac6 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2266,8 +2266,7 @@ index() { update_abuildrepo_index; }
all() {
if ! [ -n "$force" ]; then
- check_arch
- if [ $? -ne 0 ]; then
+ if ! check_arch; then
echo "Package not available for the target architecture ($CARCH). Aborting."
return 0
fi