Allow users to skip all modules in header
This commit is contained in:
@@ -354,8 +354,8 @@ print_header() {
|
|||||||
|
|
||||||
if [[ -z ${MODULES[*]} && -z ${EXCLUDE_MODULES[*]} ]]; then
|
if [[ -z ${MODULES[*]} && -z ${EXCLUDE_MODULES[*]} ]]; then
|
||||||
echo "Enter module #'s to run (by #, comma delimited)"
|
echo "Enter module #'s to run (by #, comma delimited)"
|
||||||
((YES)) || read -r -p "Or hit Enter for default (ALL): " response
|
((YES)) || read -r -p "Hit Enter for all (default) or '0' for none: " response
|
||||||
if [[ -n $response ]]; then
|
if [[ -n $response && $response -ne 0 ]]; then
|
||||||
IFS=',' read -ra arr <<< "$response"
|
IFS=',' read -ra arr <<< "$response"
|
||||||
for i in "${arr[@]}"; do
|
for i in "${arr[@]}"; do
|
||||||
MODULES+=("${ALL_MODULES[$((i-1))]}")
|
MODULES+=("${ALL_MODULES[$((i-1))]}")
|
||||||
|
|||||||
Reference in New Issue
Block a user