Only update first version field in a Cargo.toml
This commit is contained in:
@ -94,7 +94,7 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do
|
|||||||
# Set new crate version
|
# Set new crate version
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
sed -i "$Cargo_toml" -e "s/^version = \"[^\"]*\"$/version = \"$newVersion\"/"
|
sed -i "$Cargo_toml" -e "0,/^version =/{s/^version = \"[^\"]*\"$/version = \"$newVersion\"/}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Fix up the version references to other internal crates
|
# Fix up the version references to other internal crates
|
||||||
|
Reference in New Issue
Block a user