Skip to content

Commit 6e690c0

Browse files
chore: Improve checksum script based on @hhromic suggestion (#18487)
1 parent ed1dedf commit 6e690c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/checksum.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ VECTOR_VERSION=${VECTOR_VERSION:-nightly}
1313
pushd "${ROOT}/target/artifacts"
1414

1515
shopt -s extglob
16-
ARTIFACTS=$(ls !(*SHA256SUMS))
16+
ARTIFACTS=(!(*SHA256SUMS))
1717
shopt -u extglob
1818

19-
# shellcheck disable=SC2086 # Intended splitting of ARTIFACTS
20-
sha256sum $ARTIFACTS > vector-"$VECTOR_VERSION"-SHA256SUMS
19+
sha256sum "${ARTIFACTS[@]}" > vector-"$VECTOR_VERSION"-SHA256SUMS
2120

2221
popd

0 commit comments

Comments
 (0)