1 |
commit: 541a28f114fe7cc200dad01f0aeaecff6ad7a398 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 5 03:32:39 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 5 03:33:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=541a28f1 |
7 |
|
8 |
ebuild.sh: use -gt comparison for ${ECLASS_DEPTH} |
9 |
|
10 |
Reported-by: R0b0t1 <r030t1 <AT> gmail.com> |
11 |
|
12 |
bin/ebuild.sh | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/bin/ebuild.sh b/bin/ebuild.sh |
16 |
index 94a44d534..4a80fdd06 100755 |
17 |
--- a/bin/ebuild.sh |
18 |
+++ b/bin/ebuild.sh |
19 |
@@ -232,7 +232,7 @@ debug-print-section() { |
20 |
declare -ix ECLASS_DEPTH=0 |
21 |
inherit() { |
22 |
ECLASS_DEPTH=$(($ECLASS_DEPTH + 1)) |
23 |
- if [[ ${ECLASS_DEPTH} > 1 ]]; then |
24 |
+ if [[ ${ECLASS_DEPTH} -gt 1 ]]; then |
25 |
debug-print "*** Multiple Inheritence (Level: ${ECLASS_DEPTH})" |
26 |
fi |