mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Trivial fix to get 'make test' working on Mac (#749)
Apparently GNU find lets you omit the directory but BSD find does not.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Find all .go files except those under vendor/ or .git, run gofmt -l on them
|
||||
OUT=$(find ! \( -path ./vendor -prune \) ! \( -path ./.git -prune \) -name '*.go' -exec gofmt -l {} +)
|
||||
OUT=$(find . ! \( -path ./vendor -prune \) ! \( -path ./.git -prune \) -name '*.go' -exec gofmt -l {} +)
|
||||
|
||||
if [ -n "$OUT" ]; then
|
||||
echo "$OUT"
|
||||
|
||||
Reference in New Issue
Block a user