Skip to content

Commit b77abfc

Browse files
committed
update sed to work on both bsd and gnu
1 parent bd7a6d0 commit b77abfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/deploy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ echo "Creating a release branch release-${version}"
6262
git checkout -b "release-${version}"
6363

6464
echo "Updating openapi.yaml with the new version number"
65-
sed -ie -E -- "s|version: ${version_regex}|version: ${version}|" openapi.yaml
65+
sed -E -i.bak "s|version: ${version_regex}|version: ${version}|" openapi.yaml \
66+
&& rm openapi.yaml.bak
6667

6768
echo "Committing the version bump"
6869
git add openapi.yaml

0 commit comments

Comments
 (0)