From e3ef7aa556150978a983747e0a2b6a2c3ed90a4b Mon Sep 17 00:00:00 2001 From: Tiago Natel de Moura Date: Sat, 25 Feb 2017 17:59:23 -0300 Subject: [PATCH] enzo's ls doesn't support file listings Signed-off-by: Tiago Natel de Moura --- hack/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/check.sh b/hack/check.sh index 576970b5..67be14e2 100755 --- a/hack/check.sh +++ b/hack/check.sh @@ -18,7 +18,7 @@ echo "mode: count" > coverage.txt # Standard $GO tooling behavior is to ignore dirs with leading underscors for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path './Godeps*' -not -path './contrib*' -not -path './cmd/nash/vendor*' -not -path './research*' -type d); do - if ls $dir/*.go &> /dev/null; then + if ls $dir | grep '.*\.go$' &> /dev/null; then $GO test -v -race -covermode=atomic -coverprofile="$dir/profile.tmp" "$dir" if [ -f $dir/profile.tmp ] then