diff --git a/scripts/increment-cargo-version.sh b/scripts/increment-cargo-version.sh index 7e729eacf7..82af492d30 100755 --- a/scripts/increment-cargo-version.sh +++ b/scripts/increment-cargo-version.sh @@ -94,7 +94,7 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do # Set new crate version ( 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