corrected some syntax errors

This commit is contained in:
levasseur
2021-12-17 16:42:19 +01:00
parent c5051c15f2
commit 0f70c955e0
2 changed files with 5 additions and 6 deletions

View File

@@ -297,7 +297,7 @@ process_commandline_and_vars()
# Check for module list existance and basic syntax
if [[ -n $MODULE_LIST ]]; then
for $mod in $MODULE_LIST; do
if [[ $mod =~ ['\"\'\ \\-!@#$%&*=+'] ]]; then
if [[ $mod =~ ['-!@#$%\&*=+'] ]]; then
prnt E "The module \"$mod\" contains a forbidden character in its name."
die 5
fi