From 6a1946e8185580c78b14490ff39f491c11d93dba Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 1 Mar 2024 17:31:31 +0100 Subject: is_debug: Refine KCL regex --- modules/is.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 } -- cgit v1.2.3-55-g7522