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