summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej <xentec@users.noreply.github.com>2017-04-21 04:53:18 +0200
committerWilliam Pitcock <nenolod@dereferenced.org>2017-04-27 06:34:44 +0000
commit033349d31c9b4a558ca5ed5b88cd8e0a4bb5b762 (patch)
tree0695ed0e0760c7fe0aca29e3b799875889527f72
parent5b7b1f80cbaa88849e2698d67bf2d72ac9addac4 (diff)
downloadabuild-033349d31c9b4a558ca5ed5b88cd8e0a4bb5b762.tar.bz2
abuild-033349d31c9b4a558ca5ed5b88cd8e0a4bb5b762.tar.xz
Fix false `set -e` termination
`readconfig()` would return the result of `[ -z "$CBUILDROOT" ]` condition (line 123) and trigger shell termination in abuild. This also fixes building packages with a different $CTARGET and therefore cross-compile tools.
-rw-r--r--functions.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.sh.in b/functions.sh.in
index 925dc43..48b62b2 100644
--- a/functions.sh.in
+++ b/functions.sh.in
@@ -149,6 +149,7 @@ readconfig() {
export LDFLAGS="--sysroot=${CBUILDROOT} $LDFLAGS"
fi
fi
+ return 0
}
readconfig