From c110cd6b2ff79855e44a557b1e34b9f9966be2f9 Mon Sep 17 00:00:00 2001 From: William Banfield <4561443+williambanfield@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:54:28 -0500 Subject: [PATCH] Update scripts/protocgen.sh Co-authored-by: M. J. Fromberger --- scripts/protocgen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index c6ecfbae9..bf1dd4172 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -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"/