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 44fab53405..7ca396db5e 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -53,15 +53,15 @@ oefatal() { } oedebug() { - test $# -ge 2 || { + if [ $# -lt 2]; then echo "Usage: oedebug level \"message\"" exit 1 - } + fi - test ${OEDEBUG:-0} -ge $1 && { + if [ ${OEDEBUG:-0} -ge $1 ]; then shift echo "DEBUG:" $* - } + fi } oe_runmake() { |