From 9171bc5cce9a27aa39f44d61d6a6a3e88e37bac9 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 8 May 2024 00:10:57 -0400 Subject: [PATCH] fix(scripts): Update gen-upgrade-proposal.sh to take a target tag argument Fixes #9335 --- scripts/gen-upgrade-proposal.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/gen-upgrade-proposal.sh b/scripts/gen-upgrade-proposal.sh index 8f6443f6b55..dab5a576e9a 100755 --- a/scripts/gen-upgrade-proposal.sh +++ b/scripts/gen-upgrade-proposal.sh @@ -9,7 +9,8 @@ https://github.com/agoric-labs/cosmos-sdk/tree/Agoric/cosmovisor#readme ------------------------------------------------------------------------ EOF -COMMIT_ID=$(git rev-parse HEAD) +UPGRADE_TO="${1:-HEAD}" +COMMIT_ID=$(git rev-parse "$UPGRADE_TO") ZIP_URL="https://github.com/Agoric/agoric-sdk/archive/${COMMIT_ID}.zip" echo "Verifying archive is at $ZIP_URL..." 1>&2