Skip to content

Commit 0978cd9

Browse files
build: use sed in tag_release.sh
On macOS we have the BSD grep which differs from GNU grep. Change to sed so it works on any platform.
1 parent 65ad631 commit 0978cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tag_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Parse version from package.json
4-
version=$(grep -oP '"version": "\K(.*?)(?=")' package.json)
4+
version=$(sed -n 's/.*"version": "\(.*\)".*/\1/p' package.json)
55
tag="v$version"
66

77
if git rev-parse "$tag" >/dev/null 2>&1; then

0 commit comments

Comments
 (0)