commit:     0180b4e4a4499878a01005b317c8cea431bbb5fa
Author:     junwei <337560754 <AT> qq <DOT> com>
AuthorDate: Thu Jan 17 16:06:12 2019 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Jan 17 18:29:54 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=0180b4e4

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 <AT> gentoo.org>

 bin/ebuild.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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}"

Reply via email to