From d5a25879a642650257fac3b7c894e54610da4788 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Sat, 27 Jul 2024 20:13:36 -0400 Subject: [PATCH] Fix PROJECT_PREFIX --- workflow/qhtcp-workflow | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/workflow/qhtcp-workflow b/workflow/qhtcp-workflow index 3e109dd6..072cd7ea 100755 --- a/workflow/qhtcp-workflow +++ b/workflow/qhtcp-workflow @@ -1419,12 +1419,13 @@ main() { SCANS_DIR="$d" fi done - echo "Using scans directory $SCANS_DIR" - echo "Change the SCANS env var to override" + echo "Scans directory: $SCANS_DIR" + echo "Change the SCANS environment variable to override" + echo "Example: SCANS=/path/to/other/scans ./qhtcp-workflow.sh" # Set the automatic project directory prefix PROJECT_USER="$(whoami)" - PROJECT_PREFIX="${DATE}_${PROJECT_USER}_" # reversed these so easier to sort and parse date + PROJECT_PREFIX="${DATE}_${PROJECT_USER}" # reversed these so easier to sort and parse date san() { [[ $1 =~ [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_.+_.+ ]]; } # sanitizer regex for prefix declare -ag PROJECTS=() # this array will hold all of the projects for this run