diff options
-rw-r--r-- | meta/classes/base.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 4fd83020d9..2dcbcb3dc9 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -53,15 +53,15 @@ oefatal() { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | oedebug() { | 55 | oedebug() { |
56 | test $# -ge 2 || { | 56 | if [ $# -lt 2]; then |
57 | echo "Usage: oedebug level \"message\"" | 57 | echo "Usage: oedebug level \"message\"" |
58 | exit 1 | 58 | exit 1 |
59 | } | 59 | fi |
60 | 60 | ||
61 | test ${OEDEBUG:-0} -ge $1 && { | 61 | if [ ${OEDEBUG:-0} -ge $1 ]; then |
62 | shift | 62 | shift |
63 | echo "DEBUG:" $* | 63 | echo "DEBUG:" $* |
64 | } | 64 | fi |
65 | } | 65 | } |
66 | 66 | ||
67 | oe_runmake() { | 67 | oe_runmake() { |