Skip to content

Commit

Permalink
chore: Improve checksum script (vectordotdev#18487)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergilbert authored Sep 6, 2023
1 parent ed1dedf commit 8981cba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/checksum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8981cba

Please sign in to comment.