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:
Ralph Ursprung 2025-06-08 10:42:45 +02:00
parent 51e4663625
commit 0448d1fc50
No known key found for this signature in database
GPG Key ID: 86CCE68A77D190D2

View File

@ -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"