go/util/repofmt: Fix find expression for linux.

This commit is contained in:
Aaron Son
2020-05-19 08:34:44 -07:00
parent e390899183
commit c4ef9e30b0
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ cd $script_dir/../..
go install golang.org/x/tools/cmd/goimports
paths=`find . -depth 1 \( -name gen -prune -o -type d -print -o -type f -name '*.go' -print \)`
paths=`find . -maxdepth 1 -mindepth 1 \( -name gen -prune -o -type d -print -o -type f -name '*.go' -print \)`
bad_files=$(goimports -l -local github.com/liquidata-inc/dolt $paths)
if [ "$bad_files" != "" ]; then

View File

@@ -5,7 +5,7 @@ set -eo pipefail
script_dir=$(dirname "$0")
cd $script_dir/../..
paths=`find . -depth 1 \( -name gen -prune -o -type d -print -o -type f -name '*.go' -print \)`
paths=`find . -maxdepth 1 -mindepth 1 \( -name gen -prune -o -type d -print -o -type f -name '*.go' -print \)`
goimports -w -local github.com/liquidata-inc/dolt $paths