From cc336bfc7a7b7730d006e5b7336d7f34a912ae1c Mon Sep 17 00:00:00 2001 From: William Banfield Date: Mon, 15 Nov 2021 14:34:25 -0500 Subject: [PATCH] inline tarball --- scripts/protocgen.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 76885658e..8e121448b 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -7,9 +7,6 @@ set -euo pipefail # desired branch name or commit hash from the spec repo. : ${VERS:=master} -URL_PATH=tarball/ - -VERS=ba46bcc66b77e0c37921e47a2a29c574b38f2b73 echo "fetching proto files" @@ -19,8 +16,7 @@ REF=$(curl -H "Accept: application/vnd.github.v3.sha" -qL \ | cut -c -7) readonly OUTDIR="tendermint-spec-${REF}" -curl -qL "https://api.github.com/repos/tendermint/spec/${URL_PATH}${REF}" | tar -xzf - ${OUTDIR}/ - +curl -qL "https://api.github.com/repos/tendermint/spec/tarball/${REF}" | tar -xzf - ${OUTDIR}/ cp -r ${OUTDIR}/proto/tendermint/* ./proto/tendermint cp -r ${OUTDIR}/third_party/** ./third_party