Some header work
This commit is contained in:
@@ -335,18 +335,15 @@ print_header() {
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [[ -z ${PROJECTS[*]} ]]; then
|
if [[ -z ${PROJECTS[*]} ]]; then
|
||||||
last=$((${#projects[@]} - 1))
|
num=$((${#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): " response1
|
((YES)) || read -r -p "Hit enter to select default ($num): " response1
|
||||||
if [[ -z $response1 ]]; then
|
[[ -z $response1 ]] && response1=$num
|
||||||
response1=$last
|
|
||||||
else
|
|
||||||
IFS=',' read -ra arr <<< "$response1"
|
IFS=',' read -ra arr <<< "$response1"
|
||||||
for i in "${arr[@]}"; do
|
for i in "${arr[@]}"; do
|
||||||
PROJECTS+=("${projects[$((i-1))]}")
|
PROJECTS+=("${projects[$((i-1))]}")
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# last_index=$(( ${#ALL_MODULES} - 1 ))
|
# last_index=$(( ${#ALL_MODULES} - 1 ))
|
||||||
read -r -p "Enter a comma deliminated list of modules to run: " response1
|
read -r -p "Enter a comma deliminated list of modules to run: " response1
|
||||||
|
|||||||
Reference in New Issue
Block a user