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