Santizie project names in header because why not

This commit is contained in:
2024-08-01 23:00:28 -04:00
parent 22ee074758
commit 7ce6bd0a4c

View File

@@ -345,6 +345,13 @@ print_header() {
unset response arr i unset response arr i
fi fi
for i in "${!PROJECTS[@]}"; do
if ! sanitize_pn "${PROJECTS[i]}"; then
echo "Project name ${PROJECTS[i]} is invalid"
ask_pn && unset "PROJECTS[i]" && PROJECTS+=("${ADD_PROJECTS[@]}")
fi
done
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 "Or hit Enter for default (ALL): " response