Modify vars in header
This commit is contained in:
@@ -419,7 +419,11 @@ interactive_header() {
|
||||
if [[ -z ${MODULES[*]} && -z ${EXCLUDE_MODULES[*]} ]]; then
|
||||
echo "Enter a comma-separated list of modules to run"
|
||||
((YES)) || read -r -p "Hit Enter for all (default) or '0' for none: " response
|
||||
if [[ -n $response && $response -ne 0 ]]; then
|
||||
if [[ -z $response ]]; then
|
||||
MODULES=("${ALL_MODULES[@]}")
|
||||
elif [[ $response -eq 0 ]]; then
|
||||
EXCLUDE_MODULES=("${ALL_MODULES[@]}")
|
||||
else
|
||||
IFS=',' read -ra arr <<< "$response"
|
||||
for i in "${arr[@]}"; do
|
||||
MODULES+=("${ALL_MODULES[$((i-1))]}")
|
||||
|
||||
Reference in New Issue
Block a user