Some header work
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user