summaryrefslogtreecommitdiffstats
path: root/meta/classes/logging.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/logging.bbclass')
-rw-r--r--meta/classes/logging.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/logging.bbclass b/meta/classes/logging.bbclass
index 78d65bda3a..f6648b2119 100644
--- a/meta/classes/logging.bbclass
+++ b/meta/classes/logging.bbclass
@@ -62,7 +62,8 @@ bbdebug() {
62 62
63 # Strip off the debug level and ensure it is an integer 63 # Strip off the debug level and ensure it is an integer
64 DBGLVL=$1; shift 64 DBGLVL=$1; shift
65 if ! [[ "$DBGLVL" =~ ^[0-9]+ ]]; then 65 NONDIGITS=$(echo "$DBGLVL" | tr -d [:digit:])
66 if [ "$NONDIGITS" ]; then
66 bbfatal "$USAGE" 67 bbfatal "$USAGE"
67 fi 68 fi
68 69