diff options
author | Simon Rettberg | 2024-02-08 13:59:15 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-02-08 13:59:15 +0100 |
commit | 2fecffdb4da576d8b6ad904607b6d719a0a2920b (patch) | |
tree | cd3871740a85423df0b2f15d5c155fe5579a7f07 | |
parent | Document SLX_DEBUG (diff) | |
download | mltk-2fecffdb4da576d8b6ad904607b6d719a0a2920b.tar.gz mltk-2fecffdb4da576d8b6ad904607b6d719a0a2920b.tar.xz mltk-2fecffdb4da576d8b6ad904607b6d719a0a2920b.zip |
[run-virt] Use SLX_DEBUG, like slxlog does, by switching to is_debug
-rwxr-xr-x | core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt | 4 |
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 |