diff --git a/scripts/increment-cargo-version.sh b/scripts/increment-cargo-version.sh index 9024b0f7ee..7240686468 100755 --- a/scripts/increment-cargo-version.sh +++ b/scripts/increment-cargo-version.sh @@ -122,14 +122,14 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do # Set new crate version ( set -x - gsed -i "$Cargo_toml" -e "0,/^version =/{s/^version = \"[^\"]*\"$/version = \"$newVersion\"/}" + sed -i "$Cargo_toml" -e "0,/^version =/{s/^version = \"[^\"]*\"$/version = \"$newVersion\"/}" ) # Fix up the version references to other internal crates for crate in "${crates[@]}"; do ( set -x - gsed -i "$Cargo_toml" -e " + sed -i "$Cargo_toml" -e " s/^$crate = { *path *= *\"\([^\"]*\)\" *, *version *= *\"[^\"]*\"\(.*\)} *\$/$crate = \{ path = \"\1\", version = \"=$newVersion\"\2\}/ " )