File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ mkdir -p ${SINGULARITY_TMPDIR}
115
115
116
116
# load modules if LOAD_MODULES is not empty
117
117
if [[ ! -z ${LOAD_MODULES} ]]; then
118
- for mod in $( echo ${LOAD_MODULES} | tr ' ,' ' \n' )
118
+ IFS=' ,' read -r -a modules <<< " $(echo " ${LOAD_MODULES} " )"
119
+ for mod in " ${modules[@]} " ;
119
120
do
120
121
echo " bot/build.sh: loading module '${mod} '"
121
122
module load ${mod}
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ mkdir -p ${SINGULARITY_TMPDIR}
135
135
136
136
# load modules if LOAD_MODULES is not empty
137
137
if [[ ! -z ${LOAD_MODULES} ]]; then
138
- for mod in $( echo ${LOAD_MODULES} | tr ' ,' ' \n' )
138
+ IFS=' ,' read -r -a modules <<< " $(echo " ${LOAD_MODULES} " )"
139
+ for mod in " ${modules[@]} " ;
139
140
do
140
141
echo " bot/test.sh: loading module '${mod} '"
141
142
module load ${mod}
You can’t perform that action at this time.
0 commit comments