Skip to content

Commit 909e968

Browse files
committed
build: make build/goimports.sh more potable
1 parent 4612918 commit 909e968

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

build/goimports.sh

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#!/usr/bin/env bash
1+
#!/bin/sh
22

33
find_files() {
4-
find . -not \( \
4+
find . ! \( \
55
\( \
6-
-wholename '.github' \
7-
-o -wholename './build/_workspace' \
8-
-o -wholename './build/bin' \
9-
-o -wholename './crypto/bn256' \
10-
-o -wholename '*/vendor/*' \
6+
-path '.github' \
7+
-o -path './build/_workspace' \
8+
-o -path './build/bin' \
9+
-o -path './crypto/bn256' \
10+
-o -path '*/vendor/*' \
1111
\) -prune \
1212
\) -name '*.go'
1313
}
1414

15-
GOFMT="gofmt -s -w";
16-
GOIMPORTS="goimports -w";
17-
find_files | xargs $GOFMT;
18-
find_files | xargs $GOIMPORTS;
15+
GOFMT="gofmt -s -w"
16+
GOIMPORTS="goimports -w"
17+
find_files | xargs $GOFMT
18+
find_files | xargs $GOIMPORTS

0 commit comments

Comments
 (0)