Skip to content

Commit

Permalink
use curl instead of wget
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnuj committed Sep 20, 2023
1 parent 3eea9e1 commit 9885261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/install-wasmvm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WASMVM_VERSION="$1"

if [ -n "${WASMVM_VERSION}" ]; then
WASMVM_DOWNLOADS="https://github.com/CosmWasm/wasmvm/releases/download/${WASMVM_VERSION}"
wget ${WASMVM_DOWNLOADS}/checksums.txt -O /tmp/checksums.txt
curl -o /tmp/checksums.txt ${WASMVM_DOWNLOADS}/checksums.txt
ARCH=$(uname -m)
if [ ${ARCH} = "amd64" ] || [ ${ARCH} = "x86_64" ]; then
WASMVM_URL="${WASMVM_DOWNLOADS}/libwasmvm_muslc.x86_64.a"
Expand All @@ -16,7 +16,7 @@ if [ -n "${WASMVM_VERSION}" ]; then
exit 1
fi

wget ${WASMVM_URL} -O /lib/libwasmvm_muslc.a
curl -o /lib/libwasmvm_muslc.a ${WASMVM_URL}
CHECKSUM=$(sha256sum /lib/libwasmvm_muslc.a | cut -d" " -f1)
grep ${CHECKSUM} /tmp/checksums.txt
rm /tmp/checksums.txt
Expand Down

0 comments on commit 9885261

Please sign in to comment.