From 2fecffdb4da576d8b6ad904607b6d719a0a2920b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 8 Feb 2024 13:59:15 +0100 Subject: [run-virt] Use SLX_DEBUG, like slxlog does, by switching to is_debug --- core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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 -- cgit v1.2.3-55-g7522