From d7b3b4464edbc29e4f419880adc315907b778d3d Mon Sep 17 00:00:00 2001 From: Patrick Crumley Date: Fri, 8 Dec 2023 15:03:03 -0800 Subject: [PATCH] remove -i option from sed (#1389) # Description @swift-nav/devinfra cargo release uses a pre-commit hook to update the sbp2json input to point to the latest sbp release in crates.io However, the sed version uses the `-i` flag which is not POSIX defined and will give different results with gnu sed vs BSD sed. Now this should be good to release from OSX or linux --- rust/sbp2json/release-hook.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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