Skip to content

Commit a7c20ee

Browse files
fix: add checksum
1 parent 6ddb894 commit a7c20ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/dep_updaters/update-histogram.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ DEPS_DIR="$BASE_DIR/deps"
88
[ -z "$NODE" ] && NODE="$BASE_DIR/out/Release/node"
99
[ -x "$NODE" ] || NODE=$(command -v node)
1010

11+
# shellcheck disable=SC1091
12+
. "$BASE_DIR/tools/dep_updaters/utils.sh"
13+
1114
NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
1215
const res = await fetch('https://api.github.com/repos/HdrHistogram/HdrHistogram_c/releases/latest');
1316
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
@@ -45,6 +48,8 @@ echo "Fetching histogram source archive"
4548

4649
curl -sL -o "$HISTOGRAM_TARBALL" "https://github.com/HdrHistogram/HdrHistogram_c/archive/refs/tags/$HISTOGRAM_TARBALL"
4750

51+
log_and_verify_sha256sum "histogram" "$HISTOGRAM_TARBALL"
52+
4853
gzip -dc "$HISTOGRAM_TARBALL" | tar xf -
4954

5055
rm "$HISTOGRAM_TARBALL"

0 commit comments

Comments
 (0)