File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4- MESSAGE=" # Managed by .scripts\/release_cert-tools.sh"
4+ # NOTE: Slashes need to be escaped.
5+ CRATE_VERSION_COMMENT=" # Managed by .scripts\/release_cert-tools.sh"
56
67BUMPED_VERSION=$( git-cliff --config rust/cert-tools/cliff.toml --bumped-version)
78CLEANED_BUMPED_VERSION=${BUMPED_VERSION# boil-}
@@ -46,7 +47,7 @@ echo "Generating updated changelog for $BUMPED_VERSION"
4647git-cliff --config rust/cert-tools/cliff.toml --tag " $BUMPED_VERSION " > rust/cert-tools/CHANGELOG.md
4748
4849echo " Updating the version to $CLEANED_BUMPED_VERSION in the Cargo.toml file"
49- sed -E -i " s/^version = .* $MESSAGE $ /version = \" $CLEANED_BUMPED_VERSION \" $MESSAGE /" rust/cert-tools/Cargo.toml
50+ sed -E -i " s/^version = .*$ /version = \" $CLEANED_BUMPED_VERSION \" $CRATE_VERSION_COMMENT /" rust/cert-tools/Cargo.toml
5051cargo check
5152
5253echo " Committing changes"
You can’t perform that action at this time.
0 commit comments