From 2622bd602726f2f4415db5117deac3cb58220464 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Fri, 2 Aug 2024 13:32:05 -0400 Subject: [PATCH] Allow users to skip all modules in header --- workflow/qhtcp-workflow | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/qhtcp-workflow b/workflow/qhtcp-workflow index fd85efa4..b3c37097 100755 --- a/workflow/qhtcp-workflow +++ b/workflow/qhtcp-workflow @@ -354,8 +354,8 @@ print_header() { if [[ -z ${MODULES[*]} && -z ${EXCLUDE_MODULES[*]} ]]; then echo "Enter module #'s to run (by #, comma delimited)" - ((YES)) || read -r -p "Or hit Enter for default (ALL): " response - if [[ -n $response ]]; then + ((YES)) || read -r -p "Hit Enter for all (default) or '0' for none: " response + if [[ -n $response && $response -ne 0 ]]; then IFS=',' read -ra arr <<< "$response" for i in "${arr[@]}"; do MODULES+=("${ALL_MODULES[$((i-1))]}")