Fix PROJECT_PREFIX

This commit is contained in:
2024-07-27 20:13:36 -04:00
parent 7d001b3d1c
commit d5a25879a6

View File

@@ -1419,12 +1419,13 @@ main() {
SCANS_DIR="$d" SCANS_DIR="$d"
fi fi
done done
echo "Using scans directory $SCANS_DIR" echo "Scans directory: $SCANS_DIR"
echo "Change the SCANS env var to override" echo "Change the SCANS environment variable to override"
echo "Example: SCANS=/path/to/other/scans ./qhtcp-workflow.sh"
# Set the automatic project directory prefix # Set the automatic project directory prefix
PROJECT_USER="$(whoami)" 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 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 declare -ag PROJECTS=() # this array will hold all of the projects for this run