From: Per Bothner Date: Fri, 15 Nov 1991 21:11:08 +0000 (+0000) Subject: Don't grep directories, since that breaks on NFS-mounted file systems. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e11b54be2460ab9028463c081c869dd80eda30e5;p=binutils-gdb.git Don't grep directories, since that breaks on NFS-mounted file systems. --- diff --git a/.Sanitize b/.Sanitize index 164b8494e66..893435a929a 100644 --- a/.Sanitize +++ b/.Sanitize @@ -108,7 +108,8 @@ else done fi -if grep 'sanitize' * ; then - echo Some mentions of Sanitize are still left in the sources! -fi - +for i in * ; do + if test ! -d $i && (grep sanitize $i > /dev/null) ; then + echo Some mentions of Sanitize are still left in $i! + fi +done