Skip to content

Commit

Permalink
chore: Add tool check to update script (#3826)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity authored Jul 9, 2024
1 parent 0e700e7 commit b70547b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ die () {
exit 1
}

for cmd in cargo sponge jq; do
command -v "$cmd" >/dev/null || die "Required command $cmd not installed"
done

announce() {
term_green
echo
Expand Down
6 changes: 6 additions & 0 deletions scripts/update-frontend-canister.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ help()
echo
}

die()
{
echo >&2 "$@"
exit 1
}

update_changelog()
{
REPO_ROOT=$(git rev-parse --show-toplevel)
Expand Down

0 comments on commit b70547b

Please sign in to comment.