From 676c22a81b18f21cb967e6a9addce2ca3cc37db5 Mon Sep 17 00:00:00 2001 From: twmb Date: Tue, 10 Mar 2015 19:22:21 -0700 Subject: [PATCH] test.sh: fix find flag -depth to -maxdepth -depth specifies depth first search for processing directories. -maxdepth specifies how deep in directories to go. --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 60d26d7b5..f7b5caca6 100755 --- a/test.sh +++ b/test.sh @@ -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