From 26014e9064ed029ade31fab6001695d4901c7685 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Thu, 1 Aug 2024 16:50:19 -0400 Subject: [PATCH] Some header work --- workflow/qhtcp-workflow | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/qhtcp-workflow b/workflow/qhtcp-workflow index e741362f..d938d458 100755 --- a/workflow/qhtcp-workflow +++ b/workflow/qhtcp-workflow @@ -334,7 +334,7 @@ print_header() { done echo "" - if [[ -z $PROJECT ]]; then + if [[ -z $PROJECTS ]]; then last=${#projects[@]} echo "Enter project number(s) to run (comma deliminated)" ((YES)) || read -r -p "Hit enter to select default ($((last + 1))): " response1 @@ -1605,7 +1605,7 @@ main() { PROJECT_PREFIX="${DATE}_${PROJECT_USER}" # reversed these so easier to sort and parse date sanitize_pn() { [[ $1 =~ [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_.+_.+ ]]; } # sanitizer regex for prefix - declare -a PROJECTS=() # this array will hold all of the projects for this run + declare -ag PROJECTS=() # this array will hold all of the projects for this run parse_input "$@" # parse arguments with getopt