From 72e67d7da5e2d738ef8c9adb409e1a45d299fa3b Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 15 Nov 2022 18:31:30 +0100 Subject: [PATCH] build: fix ShellCheck issue in `scripts/test-go.sh` With the updated Fedora 37 container-image, a new version of ShellCheck gets installed. This version is a little more strict and complains about the array expansion in `scripts/test-go.sh`. Signed-off-by: Niels de Vos (cherry picked from commit 93d32c49c8c5a676b2e9606c39c882f017a923a9) --- scripts/test-go.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test-go.sh b/scripts/test-go.sh index 379c6de56..ae10dacbd 100755 --- a/scripts/test-go.sh +++ b/scripts/test-go.sh @@ -21,7 +21,7 @@ failed=0 for gopackage in ${GOPACKAGES}; do echo "--- testing: ${gopackage} ---" # shellcheck disable=SC2086 - go test "${GO_TAGS}" "${MOD_VENDOR}" -v ${GOTESTOPTS[*]} "${gopackage}" || ((failed += 1)) + go test "${GO_TAGS}" "${MOD_VENDOR}" -v "${GOTESTOPTS[@]}" "${gopackage}" || ((failed += 1)) if [[ -f cover.out ]]; then # Append to coverfile grep -v "^mode: count" cover.out >>"${COVERFILE}"