summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-11-15 11:00:13 +0100
committerMartin Polden <mpolden@mpolden.no>2022-11-15 11:03:58 +0100
commit381c19adeb7641cdefaa4247ba204b108eadd996 (patch)
tree3692b81b5f81a928bf833509a9854e857eba7f8e /client
parent60e0c807988226eba418e9c80da2fd0b8f5e9015 (diff)
Stop using diff in checkfmt target
Should fix build on macOS Ventura.
Diffstat (limited to 'client')
-rw-r--r--client/go/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/go/Makefile b/client/go/Makefile
index 7968d502e7a..6d9072eea27 100644
--- a/client/go/Makefile
+++ b/client/go/Makefile
@@ -135,7 +135,7 @@ test: ci
TMPDIR=`/bin/pwd`/mytmp go test ./...
checkfmt:
- @bash -c "diff --line-format='%L' <(echo -n) <(gofmt -l .)" || { echo "one or more files need to be formatted: try make fmt to fix this automatically"; exit 1; }
+ @sh -c "test -z $$(gofmt -l .)" || { echo "one or more files need to be formatted: try make fmt to fix this automatically"; exit 1; }
fmt:
gofmt -w .