Skip to content

Commit f2f4587

Browse files
committed
use array
1 parent 5f02c6c commit f2f4587

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bot/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ build_outerr=$(mktemp build.outerr.XXXX)
252252
# determine accelerator target (if any) from .architecture in ${JOB_CFG_FILE}
253253
ACCEL_OVERRIDES=$(cfg_get_value "architecture" "accelerator")
254254
if [[ -n "$ACCEL_OVERRIDES" ]]; then
255-
for ACCEL_OVERRIDE in ${ACCEL_OVERRIDES//+/ }
255+
IFS='+' read -ra ACCEL_OVERRIDES_ARRAY <<< "$ACCEL_OVERRIDES"
256+
for ACCEL_OVERRIDE in "${ACCEL_OVERRIDES_ARRAY[@]}"; do
256257
do
257258
# bot job config does not include accel subdirectory
258259
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/${ACCEL_OVERRIDE}"

0 commit comments

Comments
 (0)