We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156b37f commit 7bd5fe3Copy full SHA for 7bd5fe3
scripts/bump-version.sh
@@ -10,4 +10,10 @@ NEW_VERSION="${2}"
10
echo "Current version: ${OLD_VERSION}"
11
echo "Bumping version: ${NEW_VERSION}"
12
13
-perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" Cargo.toml
+function replace() {
14
+ ! grep "$2" $3
15
+ perl -i -pe "s/$1/$2/g" $3
16
+ grep "$2" $3 # verify that replacement was successful
17
+}
18
+
19
+replace "^version = \".*?\"" "version = \"$NEW_VERSION\"" Cargo.toml
0 commit comments