Some header work

This commit is contained in:
2024-08-01 17:12:16 -04:00
parent d669ee3c5e
commit 0d317325c1

View File

@@ -336,8 +336,8 @@ print_header() {
if [[ -z ${PROJECTS[*]} ]]; then
num=$((${#projects[@]}))
echo "Enter project number(s) to run (comma deliminated)"
((YES)) || read -r -p "Hit enter to select default ($num): " response1
echo "Enter project(s) to run (by #, comma deliminated)"
((YES)) || read -r -p "Hit enter for default ($num): " response1
[[ -z $response1 ]] && response1=$num
IFS=',' read -ra arr <<< "$response1"
for i in "${arr[@]}"; do
@@ -345,13 +345,17 @@ print_header() {
done
fi
# last_index=$(( ${#ALL_MODULES} - 1 ))
read -r -p "Enter a comma deliminated list of modules to run: " response1
if [[ -z ${MODULES[*]} ]]; then
echo "Enter module(s) to run (by #, comma deliminated)"
read -r -p "Hit enter for default (ALL): " response1
IFS=',' read -ra MODULES <<< "$response1"
fi
# last_index=$(( ${#ALL_SUBMODULES} - 1 ))
read -r -p "Enter a comma deliminated list of submodules to run: " response2
if [[ -z ${SUBMODULES[*]} ]]; then
echo "Enter submodule(s) to run (by #, comma deliminated):"
read -r -p "Hit enter for default (ALL): " response2
IFS=',' read -ra SUBMODULES <<< "$response2"
fi
# cat <<-EOF
# Available modules: ${ALL_MODULES[*]}