From 4f783aa57ce5cae812ad2e0625cd09dd89024b5b Mon Sep 17 00:00:00 2001 From: Spencer Gilbert Date: Wed, 6 Sep 2023 08:58:16 -0400 Subject: [PATCH] chore: Improve checksum script Suggested in https://github.com/vectordotdev/vector/pull/18483#discussion_r1316992135 --- scripts/checksum.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/checksum.sh b/scripts/checksum.sh index 76d6e9d70301a..237fec78f6ff1 100755 --- a/scripts/checksum.sh +++ b/scripts/checksum.sh @@ -13,10 +13,9 @@ VECTOR_VERSION=${VECTOR_VERSION:-nightly} pushd "${ROOT}/target/artifacts" shopt -s extglob -ARTIFACTS=$(ls !(*SHA256SUMS)) +ARTIFACTS=(!(*SHA256SUMS)) shopt -u extglob -# shellcheck disable=SC2086 # Intended splitting of ARTIFACTS -sha256sum $ARTIFACTS > vector-"$VECTOR_VERSION"-SHA256SUMS +sha256sum "${ARTIFACTS[@]}" > vector-"$VECTOR_VERSION"-SHA256SUMS popd