aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-06-21 18:56:37 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-06-21 18:56:37 +0100
commitd4127c98b4b90b33e9c2e937aa71c20d0956ebc0 (patch)
tree91709c5ee2cf87fb8328ea35bd1546b528cb26f3
parentREADME: override PORT_LOGDIR to dry-run tests (diff)
downloadcrossdev-d4127c98b4b90b33e9c2e937aa71c20d0956ebc0.tar.gz
crossdev-d4127c98b4b90b33e9c2e937aa71c20d0956ebc0.tar.bz2
crossdev-d4127c98b4b90b33e9c2e937aa71c20d0956ebc0.zip
crossdev: use die() in eval() context to avoid error message swallowing
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-xcrossdev5
1 files changed, 1 insertions, 4 deletions
diff --git a/crossdev b/crossdev
index 7bceed5..1a2b030 100755
--- a/crossdev
+++ b/crossdev
@@ -991,10 +991,7 @@ load_multilib_env() {
else
single_abi=false
fi
- if ! multilib_env ; then
- echo "die 'could not load multilib settings for ${var}'"
- exit 1
- fi
+ multilib_env || die "die 'could not load multilib settings for ${var}'"
${single_abi} && MULTILIB_ABIS=${DEFAULT_ABI}
# output the desired env