Skip to content

Commit e4fee52

Browse files
committed
ci/test.sh: Work with BSD sed
1 parent fe1020d commit e4fee52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ main() {
55
cd "$(dirname "$0")/.."
66

77
go test -timeout=30m -covermode=atomic -coverprofile=ci/out/coverage.prof -coverpkg=./... "$@" ./...
8-
sed -i '/stringer\.go/d' ci/out/coverage.prof
9-
sed -i '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof
10-
sed -i '/examples/d' ci/out/coverage.prof
8+
sed -i.bak '/stringer\.go/d' ci/out/coverage.prof
9+
sed -i.bak '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof
10+
sed -i.bak '/examples/d' ci/out/coverage.prof
1111

1212
# Last line is the total coverage.
1313
go tool cover -func ci/out/coverage.prof | tail -n1

0 commit comments

Comments
 (0)