diff --git a/scripts/version.sh b/scripts/version.sh index e6ca06a..7b7185f 100644 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -47,7 +47,9 @@ fi # Update version in Cargo.toml and commit it # ================================================================= -sed -i "s/^version = .*/version = \"$VERSION_NEXT\"/" Cargo.toml +# echo "Next: $VERSION_NEXT" +# sed -i "s/^version = .*/version = \"$VERSION_NEXT\"/" Cargo.toml +sed -i '' "s/^version = .*/version = \"$VERSION_NEXT\"/" Cargo.toml cargo generate-lockfile # Update version in Cargo.lock git add . git commit -m "build: bump version to v$VERSION_NEXT" @@ -58,4 +60,4 @@ git commit -m "build: bump version to v$VERSION_NEXT" echo "Tagging Commit & Pushing Changes: v$VERSION_NEXT" git tag -a "v$VERSION_NEXT" -m "Release: v$VERSION_NEXT" -git push -u origin main --follow-tags \ No newline at end of file +git push -u origin main --follow-tags