summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-08 13:59:15 +0100
committerSimon Rettberg2024-02-08 13:59:15 +0100
commit2fecffdb4da576d8b6ad904607b6d719a0a2920b (patch)
treecd3871740a85423df0b2f15d5c155fe5579a7f07 /core
parentDocument SLX_DEBUG (diff)
downloadmltk-2fecffdb4da576d8b6ad904607b6d719a0a2920b.tar.gz
mltk-2fecffdb4da576d8b6ad904607b6d719a0a2920b.tar.xz
mltk-2fecffdb4da576d8b6ad904607b6d719a0a2920b.zip
[run-virt] Use SLX_DEBUG, like slxlog does, by switching to is_debug
Diffstat (limited to 'core')
-rwxr-xr-xcore/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt b/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt
index c5958b7f..e8618edf 100755
--- a/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt
+++ b/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt
@@ -46,10 +46,10 @@ fi
. /opt/openslx/bin/slx-tools
# Debug mode?
-if [ "x$1" = "x--debug" ]; then
+if [ "$1" = "--debug" ]; then
shift
DEBUG=true
-elif [ "$SLX_DEBUG_MODE" = "ON" ] || grep -qE '\bdebug\b' "/proc/cmdline"; then
+elif is_debug; then
DEBUG=true
else
DEBUG=false