Permalink
Browse files

Merge pull request #6 from arian/patch-1

Ignore .svn files properly.
  • Loading branch information...
2 parents 5e0f044 + 483a010 commit f76be28fa4461c27c089d34db81fff20d405a8bd @rauchg committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spot.sh
View
@@ -99,13 +99,13 @@ fi
# run search
if [ $colors ]; then
- find "$dir" -type f ! -path '*/.git*' ! -path '*/.svn' -print0 \
+ find "$dir" -type f ! -path '*/.git*' ! -path '*/.svn*' -print0 \
| GREP_COLOR="1;33;40" xargs -0 grep $grepopt "`echo $@`" \
| sed "s/^\([^:]*:\)\(.*\)/ \\
$cyan\1$reset \\
\2 /"
else
- find "$dir" -type f ! -path '*/.git*' ! -path '*/.svn' -print0 \
+ find "$dir" -type f ! -path '*/.git*' ! -path '*/.svn*' -print0 \
| xargs -0 grep $grepopt "$@" \
| sed "s/^\([^:]*:\)\(.*\)/ \\
\1 \\

0 comments on commit f76be28

Please sign in to comment.