mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 04:10:25 +00:00
fix release/bump-dependency.sh
: don't generate backup files
the `-rie` arguments of `sed` were probably meant as `-r -i -e`, however, due to the way it was written it ended up being `-r -i e`, thus causing `-i` (edit in-place) to generate backup files. so for every edited `Cargo.toml` it also created a `Cargo.tomle` with the previous content. `-e` is anyway not needed as the last argument of `sed` here is the expression to be executed.
This commit is contained in:
parent
51e4663625
commit
0448d1fc50
@ -8,4 +8,4 @@
|
||||
#
|
||||
CRATE=$1
|
||||
TARGET_VER=$2
|
||||
find . -name "Cargo.toml" | xargs sed -rie "s/($CRATE = \{.*version = \")[0-9]+.[0-9]+.?[0-9]*(\".*)/\1$TARGET_VER\2/g"
|
||||
find . -name "Cargo.toml" | xargs sed -ri "s/($CRATE = \{.*version = \")[0-9]+.[0-9]+.?[0-9]*(\".*)/\1$TARGET_VER\2/g"
|
||||
|
Loading…
x
Reference in New Issue
Block a user