aboutsummaryrefslogtreecommitdiff
path: root/release/bump-dependency.sh
diff options
context:
space:
mode:
authorRalph Ursprung <[email protected]>2025-06-08 10:42:45 +0200
committerRalph Ursprung <[email protected]>2025-07-08 23:04:20 +0200
commit0448d1fc50e80832ecd6382ad3add9575d505d37 (patch)
tree9c47208607693e160d8f27a9fd9ad5fc65a5f4da /release/bump-dependency.sh
parent51e46636254f3e56f467b3d44ed10c7a20e1814a (diff)
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.
Diffstat (limited to 'release/bump-dependency.sh')
-rwxr-xr-xrelease/bump-dependency.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/bump-dependency.sh b/release/bump-dependency.sh
index 07511d229..97f73cddc 100755
--- a/release/bump-dependency.sh
+++ b/release/bump-dependency.sh
@@ -8,4 +8,4 @@
8# 8#
9CRATE=$1 9CRATE=$1
10TARGET_VER=$2 10TARGET_VER=$2
11find . -name "Cargo.toml" | xargs sed -rie "s/($CRATE = \{.*version = \")[0-9]+.[0-9]+.?[0-9]*(\".*)/\1$TARGET_VER\2/g" 11find . -name "Cargo.toml" | xargs sed -ri "s/($CRATE = \{.*version = \")[0-9]+.[0-9]+.?[0-9]*(\".*)/\1$TARGET_VER\2/g"