Allow users to skip all modules in header

This commit is contained in:
2024-08-02 13:32:05 -04:00
parent 01531e734f
commit 2622bd6027

View File

@@ -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))]}")