Skip to content

Commit

Permalink
Make set-version script BSD-sed compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Heringer committed Oct 22, 2024
1 parent 2295fcf commit 21e78a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions set-version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

VERSION="$(cargo read-manifest | jq .version | sed "s/\"//g")"
sed -i -E "s#-[0-9]+\.[0-9]+\.[0-9]_#-${VERSION}_#g" README.md
sed -i -E "s#/[0-9]+\.[0-9]+\.[0-9]/#/${VERSION}/#g" README.md
sed -i'' -E "s#-[0-9]+\.[0-9]+\.[0-9]_#-${VERSION}_#g" README.md
sed -i'' -E "s#/[0-9]+\.[0-9]+\.[0-9]/#/${VERSION}/#g" README.md

0 comments on commit 21e78a2

Please sign in to comment.