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))]}")