Skip to content

Commit

Permalink
Exit scripts early if sha256sum not installed (#6058)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Jul 18, 2024
1 parent 5518053 commit 8b7e39a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/make_upgrade_canister_proposal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ echo "TAG: $TAG"
echo "COMMIT_ID: $COMMIT_ID"
echo "URL: $URL"

if ! command -v sha256sum &> /dev/null
then
echo "sha256sum could not be found, please install it then try again"
exit 1
fi

# Download the canister WASM at the given commit
./scripts/download-canister-wasm.sh $CANISTER_NAME $COMMIT_ID || exit 1

Expand Down
6 changes: 6 additions & 0 deletions scripts/verify-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ SCRIPT=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "$SCRIPT")
cd $SCRIPT_DIR/..

if ! command -v sha256sum &> /dev/null
then
echo "sha256sum could not be found, please install it then try again"
exit 1
fi

./scripts/check-docker-is-running.sh || exit 1

RELEASE_VERSION=$1
Expand Down

0 comments on commit 8b7e39a

Please sign in to comment.