diff options
-rw-r--r-- | modules/is.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/is.inc b/modules/is.inc index 3d623b8..7ea44e7 100644 --- a/modules/is.inc +++ b/modules/is.inc @@ -19,7 +19,7 @@ is_debug() { fi fi # Replace function for future calls as this is const - if is_on "$SLX_DEBUG" || grep -qE '\bdebug\b' "/proc/cmdline"; then + if is_on "$SLX_DEBUG" || grep -qE '(^|[[:space:]]|\bslx\.)debug($|[[:space:]]|=)' "/proc/cmdline"; then is_debug() { return 0 } |