diff options
author | Simon Rettberg | 2024-03-01 17:31:31 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-03-01 17:31:31 +0100 |
commit | 6a1946e8185580c78b14490ff39f491c11d93dba (patch) | |
tree | b64692470eb59e0c417c62bd31764d2296affe1e /modules | |
parent | [is] Add is_debug: Check whether system is running in debug mode (diff) | |
download | slx-tools-6a1946e8185580c78b14490ff39f491c11d93dba.tar.gz slx-tools-6a1946e8185580c78b14490ff39f491c11d93dba.tar.xz slx-tools-6a1946e8185580c78b14490ff39f491c11d93dba.zip |
Diffstat (limited to 'modules')
-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 } |