commit:     541a28f114fe7cc200dad01f0aeaecff6ad7a398
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  5 03:32:39 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Feb  5 03:33:42 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=541a28f1

ebuild.sh: use -gt comparison for ${ECLASS_DEPTH}

Reported-by: R0b0t1 <r030t1 <AT> gmail.com>

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

diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 94a44d534..4a80fdd06 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -232,7 +232,7 @@ debug-print-section() {
 declare -ix ECLASS_DEPTH=0
 inherit() {
        ECLASS_DEPTH=$(($ECLASS_DEPTH + 1))
-       if [[ ${ECLASS_DEPTH} > 1 ]]; then
+       if [[ ${ECLASS_DEPTH} -gt 1 ]]; then
                debug-print "*** Multiple Inheritence (Level: ${ECLASS_DEPTH})"
        fi
 

Reply via email to