Skip to content

Commit

Permalink
test.sh: fix find flag -depth to -maxdepth
Browse files Browse the repository at this point in the history
-depth specifies depth first search for processing directories.
-maxdepth specifies how deep in directories to go.
  • Loading branch information
twmb committed Mar 11, 2015
1 parent 77a46db commit 676c22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ go test -timeout 60s ./...
GOMAXPROCS=4 go test -timeout 60s -race ./...

# no tests, but a build is something
for dir in $(find apps bench -depth 1 -type d) nsqadmin; do
for dir in $(find apps bench -maxdepth 1 -type d) nsqadmin; do
if grep -q '^package main$' $dir/*.go ; then
echo "building $dir"
go build -o $dir/$(basename $dir) ./$dir
Expand Down

0 comments on commit 676c22a

Please sign in to comment.