Skip to content

Commit adcd250

Browse files
chore(cert-tools): Don't match comment in release script, rename variable
Co-authored-by: Nick Larsen <nick.larsen@stackable.tech>
1 parent 3e6f082 commit adcd250

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/release_cert-tools.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22
set -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

67
BUMPED_VERSION=$(git-cliff --config rust/cert-tools/cliff.toml --bumped-version)
78
CLEANED_BUMPED_VERSION=${BUMPED_VERSION#boil-}
@@ -46,7 +47,7 @@ echo "Generating updated changelog for $BUMPED_VERSION"
4647
git-cliff --config rust/cert-tools/cliff.toml --tag "$BUMPED_VERSION" > rust/cert-tools/CHANGELOG.md
4748

4849
echo "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
5051
cargo check
5152

5253
echo "Committing changes"

0 commit comments

Comments
 (0)