diff --git a/rust/sbp2json/release-hook.sh b/rust/sbp2json/release-hook.sh index 4c56ab5cbf..b14e86869a 100755 --- a/rust/sbp2json/release-hook.sh +++ b/rust/sbp2json/release-hook.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash -sed -i -e "s@^.*TODO.*replace.*sbp.*\$@version = \"$NEW_VERSION\"@" Cargo.toml +sed -e "s@^.*TODO.*replace.*sbp.*\$@version = \"$NEW_VERSION\"@" Cargo.toml > Cargo.toml.new +mv Cargo.toml.new Cargo.toml