Skip to content

Commit

Permalink
Allow = versions in set_version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Aug 30, 2022
1 parent efb677a commit f625cb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devtools/set_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ FILES_MODIFIED=()

for package_dir in packages/*/; do
CARGO_TOML="$package_dir/Cargo.toml"
# The `version = "1.0.0"` cases
"$gnused" -i -e "s/version[[:space:]]*=[[:space:]]*\"$OLD\"/version = \"$NEW\"/" "$CARGO_TOML"
# The `version = "=1.0.0"` cases
"$gnused" -i -e "s/version[[:space:]]*=[[:space:]]*\"=$OLD\"/version = \"=$NEW\"/" "$CARGO_TOML"
FILES_MODIFIED+=("$CARGO_TOML")
done

Expand Down

0 comments on commit f625cb9

Please sign in to comment.