Skip to content

Commit d7b3b44

Browse files
authored
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
1 parent 3d8c0be commit d7b3b44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/sbp2json/release-hook.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/usr/bin/env bash
22

3-
sed -i -e "s@^.*TODO.*replace.*sbp.*\$@version = \"$NEW_VERSION\"@" Cargo.toml
3+
sed -e "s@^.*TODO.*replace.*sbp.*\$@version = \"$NEW_VERSION\"@" Cargo.toml > Cargo.toml.new
4+
mv Cargo.toml.new Cargo.toml

0 commit comments

Comments
 (0)