From f6a32ff73c412b0b2efdcf3d259f906f89bbdcb6 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Fri, 2 Aug 2024 22:07:25 -0400 Subject: [PATCH] Modify vars in header --- workflow/qhtcp-workflow | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/workflow/qhtcp-workflow b/workflow/qhtcp-workflow index 727376dd..4164fd2b 100755 --- a/workflow/qhtcp-workflow +++ b/workflow/qhtcp-workflow @@ -419,7 +419,11 @@ interactive_header() { if [[ -z ${MODULES[*]} && -z ${EXCLUDE_MODULES[*]} ]]; then echo "Enter a comma-separated list of modules to run" ((YES)) || read -r -p "Hit Enter for all (default) or '0' for none: " response - if [[ -n $response && $response -ne 0 ]]; then + if [[ -z $response ]]; then + MODULES=("${ALL_MODULES[@]}") + elif [[ $response -eq 0 ]]; then + EXCLUDE_MODULES=("${ALL_MODULES[@]}") + else IFS=',' read -ra arr <<< "$response" for i in "${arr[@]}"; do MODULES+=("${ALL_MODULES[$((i-1))]}")