Skip to content

Commit

Permalink
chore: Improve checksum script based on @hhromic suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergilbert committed Sep 6, 2023
1 parent f11eeb3 commit 20eead9
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 20eead9

Please sign in to comment.