From 4982b95aedb3dc0617057431a4a0c5626e350b29 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Fri, 26 Jul 2024 23:23:31 +0100 Subject: [PATCH] Pass DFX version into the `upgrade_asset_canister` script --- scripts/proposals/upgrade_asset_canister.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/proposals/upgrade_asset_canister.sh b/scripts/proposals/upgrade_asset_canister.sh index 4a7b0d8992..76718d1326 100755 --- a/scripts/proposals/upgrade_asset_canister.sh +++ b/scripts/proposals/upgrade_asset_canister.sh @@ -5,10 +5,12 @@ SCRIPT=$(readlink -f "$0") SCRIPT_DIR=$(dirname "$SCRIPT") cd $SCRIPT_DIR/../.. -TITLE="Upgrade asset canister to DFX version 0.19.0" -URL="https://github.com/dfinity/sdk/releases/tag/0.19.0" +DFX_VERSION=$1 + +TITLE="Upgrade asset canister to DFX version $DFX_VERSION" +URL="https://github.com/dfinity/sdk/releases/tag/$DFX_VERSION" CANISTER_NAME=website -SUMMARY="This proposal upgrades the asset canister wasm to the version included in DFX 0.19.0" +SUMMARY="This proposal upgrades the asset canister wasm to the version included in DFX $DFX_VERSION" FUNCTION_ID=3 # Set env variables based on .env file