diff --git a/workflow/qhtcp-workflow b/workflow/qhtcp-workflow index 38ded155..37c3027b 100755 --- a/workflow/qhtcp-workflow +++ b/workflow/qhtcp-workflow @@ -336,8 +336,8 @@ print_header() { if [[ -z ${PROJECTS[*]} ]]; then num=$((${#projects[@]})) - echo "Enter project number(s) to run (comma deliminated)" - ((YES)) || read -r -p "Hit enter to select default ($num): " response1 + echo "Enter project(s) to run (by #, comma deliminated)" + ((YES)) || read -r -p "Hit enter for default ($num): " response1 [[ -z $response1 ]] && response1=$num IFS=',' read -ra arr <<< "$response1" for i in "${arr[@]}"; do @@ -345,13 +345,17 @@ print_header() { done fi - # last_index=$(( ${#ALL_MODULES} - 1 )) - read -r -p "Enter a comma deliminated list of modules to run: " response1 - IFS=',' read -ra MODULES <<< "$response1" + if [[ -z ${MODULES[*]} ]]; then + echo "Enter module(s) to run (by #, comma deliminated)" + read -r -p "Hit enter for default (ALL): " response1 + IFS=',' read -ra MODULES <<< "$response1" + fi - # last_index=$(( ${#ALL_SUBMODULES} - 1 )) - read -r -p "Enter a comma deliminated list of submodules to run: " response2 - IFS=',' read -ra SUBMODULES <<< "$response2" + if [[ -z ${SUBMODULES[*]} ]]; then + echo "Enter submodule(s) to run (by #, comma deliminated):" + read -r -p "Hit enter for default (ALL): " response2 + IFS=',' read -ra SUBMODULES <<< "$response2" + fi # cat <<-EOF # Available modules: ${ALL_MODULES[*]}