fixed module list

This commit is contained in:
2024-02-04 19:04:38 +01:00
parent 8de818a3d0
commit a23fb505b3

View File

@@ -36,7 +36,7 @@ read_commandline()
;; ;;
"-m"|"--module") "-m"|"--module")
if [[ -z $MANUAL_MODULE_LIST ]]; then if [[ -z $MANUAL_MODULE_LIST ]]; then
export MANUAL_MODULE_LIST=$2 export MANUAL_MODULE_LIST="$2"
else else
prnt E "A module list have already been given!" prnt E "A module list have already been given!"
prnt E "Commande line only tolerate one --module parameter." prnt E "Commande line only tolerate one --module parameter."
@@ -166,7 +166,7 @@ process_commandline_and_vars()
# Configure module list # Configure module list
if [[ -n $MANUAL_MODULE_LIST ]]; then if [[ -n $MANUAL_MODULE_LIST ]]; then
prnt W "A manual module list will be used:" prnt W "A manual module list will be used:"
export MODULE_LIST=${MANUAL_MODULE_LIST//,/ /g} export MODULE_LIST=${MANUAL_MODULE_LIST//,/ }
prnt m " * $MODULE_LIST" prnt m " * $MODULE_LIST"
fi fi