aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjunwei <337560754@qq.com>2019-01-18 00:06:12 +0800
committerZac Medico <zmedico@gentoo.org>2019-01-17 10:29:54 -0800
commit0180b4e4a4499878a01005b317c8cea431bbb5fa (patch)
treef88eadfc7325235440ca83803d5ca0c68fb8abb5
parentbin/socks5-server.py: fix PendingDeprecationWarning for asyncio.Task.current_... (diff)
downloadportage-0180b4e4a4499878a01005b317c8cea431bbb5fa.tar.gz
portage-0180b4e4a4499878a01005b317c8cea431bbb5fa.tar.bz2
portage-0180b4e4a4499878a01005b317c8cea431bbb5fa.zip
ebuild.sh: fix try_source qa condition test
Fixes: 60ee4deefb70 ("Refactor bashrc scripts sourcing") Closes: https://github.com/gentoo/portage/pull/400 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rwxr-xr-xbin/ebuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 978643af7..820db50ca 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -476,7 +476,7 @@ __try_source() {
# If $- contains x, then tracing has already been enabled
# elsewhere for some reason. We preserve it's state so as
# not to interfere.
- if [[ ${qa} ]]; then
+ if ! ${qa} ; then
source "${1}"
else
__qa_source "${1}"