summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test.bash')
-rwxr-xr-xtest.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.bash b/test.bash
index 99884a8..b0faf68 100755
--- a/test.bash
+++ b/test.bash
@@ -79,7 +79,7 @@ else
rm -Rf "$TESTDIR"
fi
-if grep -R "panic(" ./*.go internal ; then
+if find internal -type f -name \*.go -print0 | xargs -0 grep "panic("; then
echo "$MYNAME: Please use log.Panic instead of naked panic!"
exit 1
fi