aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorhackyminer <hackyminer@gmail.com>2018-06-26 21:04:27 +0800
committerhackyminer <hackyminer@gmail.com>2018-06-26 21:04:27 +0800
commit909e968ebb733dc01150e4e67221fef1177b0c8c (patch)
tree75b2487db95768583d2c9721d02bcddde8713a79 /build
parent461291882edce0ac4a28f64c4e8725b7f57cbeae (diff)
downloadgo-tangerine-909e968ebb733dc01150e4e67221fef1177b0c8c.tar.gz
go-tangerine-909e968ebb733dc01150e4e67221fef1177b0c8c.tar.zst
go-tangerine-909e968ebb733dc01150e4e67221fef1177b0c8c.zip
build: make build/goimports.sh more potable
Diffstat (limited to 'build')
-rwxr-xr-xbuild/goimports.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/build/goimports.sh b/build/goimports.sh
index 6d67ef1f0..1fcace6a4 100755
--- a/build/goimports.sh
+++ b/build/goimports.sh
@@ -1,18 +1,18 @@
-#!/usr/bin/env bash
+#!/bin/sh
find_files() {
- find . -not \( \
+ find . ! \( \
\( \
- -wholename '.github' \
- -o -wholename './build/_workspace' \
- -o -wholename './build/bin' \
- -o -wholename './crypto/bn256' \
- -o -wholename '*/vendor/*' \
+ -path '.github' \
+ -o -path './build/_workspace' \
+ -o -path './build/bin' \
+ -o -path './crypto/bn256' \
+ -o -path '*/vendor/*' \
\) -prune \
\) -name '*.go'
}
-GOFMT="gofmt -s -w";
-GOIMPORTS="goimports -w";
-find_files | xargs $GOFMT;
-find_files | xargs $GOIMPORTS; \ No newline at end of file
+GOFMT="gofmt -s -w"
+GOIMPORTS="goimports -w"
+find_files | xargs $GOFMT
+find_files | xargs $GOIMPORTS