Update scripts/protocgen.sh

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
This commit is contained in:
William Banfield
2021-11-12 10:54:28 -05:00
committed by GitHub
parent 7548f710a7
commit c110cd6b2f

View File

@@ -10,7 +10,9 @@ fi
echo "fetching proto files"
# Get shortened ref of commit
REF=`curl -H "Accept: application/vnd.github.v3.sha" -qL "https://api.github.com/repos/tendermint/spec/commits/${VERS}" | cut -c -7`
REF=$(curl -H "Accept: application/vnd.github.v3.sha" -qL \
"https://api.github.com/repos/tendermint/spec/commits/${VERS}" \
| cut -c -7)
# Edit this line to clone your branch, if you are modifying protobuf files
curl -qL "https://api.github.com/repos/tendermint/spec/${URL_PATH}${REF}" | tar -xzf - tendermint-spec-"$REF"/