Replace a string variable with a bash array
We used to have several FIXME's like this one in pipeline/stages/build.yml
:
# FIXME Make EXCLUDES an array, and use either ${EXCLUDES[*]} or ${EXCLUDES[@]} as appropriate.
EXCLUDES="*vmlinux* *.mod *.o *.ko *.cmd Documentation .config.old .missing-syscalls.d *.s tar-install"
# shellcheck disable=SC2086 # FIXME Disabled on purpose as we want the splits of the words in the variable. It can be removed once join_by_multi uses arrays.
EXCLUDES="$(join_by_multi ' --exclude=' ${EXCLUDES})"
Most of then were addressed by: !1579 (merged)
AC:
Replace EXCLUDES
with a bash array as suggested in the FIXME comment.