Skip to content

Commit b56c708

Browse files
author
Caspar van Leeuwen
committed
Also fix in test.sh
1 parent 109dbef commit b56c708

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ mkdir -p ${SINGULARITY_TMPDIR}
135135

136136
# load modules if LOAD_MODULES is not empty
137137
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[@]}";
139140
do
140141
echo "bot/test.sh: loading module '${mod}'"
141142
module load ${mod}

0 commit comments

Comments
 (0)