From a29783969340237bf0ff9189ccf9001a4229e509 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Thu, 6 Feb 2025 11:40:57 -0300 Subject: [PATCH] Stop quoting multiple parameters together $chroot_opts holds multiple parameters that mustn't be treated as a single one. Start treating it as an array in order to satisfy shellcheck requirements. --- .github/workflows/fedora-copr-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fedora-copr-build.yml b/.github/workflows/fedora-copr-build.yml index e66efbbd..bff0e59f 100644 --- a/.github/workflows/fedora-copr-build.yml +++ b/.github/workflows/fedora-copr-build.yml @@ -132,7 +132,7 @@ jobs: source scripts/functions.sh [[ -n "${{ matrix.extra_script_file }}" ]] && source ${{ matrix.extra_script_file }} - chroot_opts=$(for c in ${{ env.chroots }}; do echo -n " --chroot $c "; done) + chroot_opts=($(for c in ${{ env.chroots }}; do echo -n " --chroot $c "; done)) copr create \ --instructions "$(cat project-instructions.md)" \ @@ -144,7 +144,7 @@ jobs: --appstream off \ --delete-after-days 32 \ --module-hotfixes on \ - "$chroot_opts" "${{ env.project_today }}" + "${chroot_opts[@]}" "${{ env.project_today }}" - name: "Enable snapshot_build build condition for all and swig:4.0 module in RHEL 8 build chroots (if any)" shell: bash -e {0}