mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 00:39:40 -06:00
go/util/repofmt: Fix find expression for linux.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user