We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4612918 commit 909e968Copy full SHA for 909e968
build/goimports.sh
@@ -1,18 +1,18 @@
1
-#!/usr/bin/env bash
+#!/bin/sh
2
3
find_files() {
4
- find . -not \( \
+ find . ! \( \
5
\( \
6
- -wholename '.github' \
7
- -o -wholename './build/_workspace' \
8
- -o -wholename './build/bin' \
9
- -o -wholename './crypto/bn256' \
10
- -o -wholename '*/vendor/*' \
+ -path '.github' \
+ -o -path './build/_workspace' \
+ -o -path './build/bin' \
+ -o -path './crypto/bn256' \
+ -o -path '*/vendor/*' \
11
\) -prune \
12
\) -name '*.go'
13
}
14
15
-GOFMT="gofmt -s -w";
16
-GOIMPORTS="goimports -w";
17
-find_files | xargs $GOFMT;
18
-find_files | xargs $GOIMPORTS;
+GOFMT="gofmt -s -w"
+GOIMPORTS="goimports -w"
+find_files | xargs $GOFMT
+find_files | xargs $GOIMPORTS
0 commit comments