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