Skip to content

Commit d030bc8

Browse files
committed
use %q
1 parent d034d0d commit d030bc8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bot/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,6 @@ echo "Executing command to create tarball:"
332332
echo "$software_layer_dir/eessi_container.sh ${COMMON_ARGS[@]} ${TARBALL_STEP_ARGS[@]}"
333333
echo " -- $software_layer_dir/create_tarball.sh ${TMP_IN_CONTAINER} ${EESSI_VERSION}${EESSI_SOFTWARE_LAYER_VERSION_SUFFIX} ${EESSI_SOFTWARE_SUBDIR_OVERRIDE} \"${EESSI_ACCELERATOR_TARGET_OVERRIDES[@]}\" /eessi_bot_job/${TARBALL} 2>&1 | tee -a ${tar_outerr}"
334334
$software_layer_dir/eessi_container.sh "${COMMON_ARGS[@]}" "${TARBALL_STEP_ARGS[@]}" \
335-
-- $software_layer_dir/create_tarball.sh ${TMP_IN_CONTAINER} ${EESSI_VERSION}${EESSI_SOFTWARE_LAYER_VERSION_SUFFIX} ${EESSI_SOFTWARE_SUBDIR_OVERRIDE} "$(printf '%s\n' \"${EESSI_ACCELERATOR_TARGET_OVERRIDES[@]}\")" /eessi_bot_job/${TARBALL} 2>&1 | tee -a ${tar_outerr}
335+
-- $software_layer_dir/create_tarball.sh ${TMP_IN_CONTAINER} ${EESSI_VERSION}${EESSI_SOFTWARE_LAYER_VERSION_SUFFIX} ${EESSI_SOFTWARE_SUBDIR_OVERRIDE} "$(printf '%q ' \"${EESSI_ACCELERATOR_TARGET_OVERRIDES[@]}\")" /eessi_bot_job/${TARBALL} 2>&1 | tee -a ${tar_outerr}
336336

337337
exit 0

create_tarball.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ echo "accel_subdirs 1: ${accel_subdirs}"
6868
if [ -n "${accel_subdirs}" ]; then
6969
# convert accel_subdirs into an array...
7070
#read -r -a accel_subdirs <<< ${accel_subdirs}
71-
mapfile -t accel_subdirs <<< "$accel_subdirs"
72-
#eval "accel_subdirs=(${accel_subdirs})"
71+
#mapfile -t accel_subdirs <<< "$accel_subdirs"
72+
eval "accel_subdirs=(${accel_subdirs})"
7373
echo "accel_subdirs 2: ${accel_subdirs}"
7474
# and prepend the cpu_arch_subdir to all elements
7575
accel_subdirs="${accel_subdirs[@]/#/${cpu_arch_subdir}/}"

0 commit comments

Comments
 (0)