Some header work

This commit is contained in:
2024-08-01 16:50:19 -04:00
parent 7acbd90f62
commit 26014e9064

View File

@@ -334,7 +334,7 @@ print_header() {
done done
echo "" echo ""
if [[ -z $PROJECT ]]; then if [[ -z $PROJECTS ]]; then
last=${#projects[@]} last=${#projects[@]}
echo "Enter project number(s) to run (comma deliminated)" echo "Enter project number(s) to run (comma deliminated)"
((YES)) || read -r -p "Hit enter to select default ($((last + 1))): " response1 ((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 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 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 parse_input "$@" # parse arguments with getopt