[cig-commits] [commit] master: do not use grep -P (49b627d)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Mon Jan 12 02:21:14 PST 2015


Repository : https://github.com/geodynamics/burnman

On branch  : master
Link       : https://github.com/geodynamics/burnman/compare/7f5b434205c350cf63713699989e415d4de0e75e...44b9d7ef2729c70303312d8039f4ed52f2d22330

>---------------------------------------------------------------

commit 49b627d9fff3badff3335869fa28ea949e71ec96
Author: Timo Heister <timo.heister at gmail.com>
Date:   Sun Jan 11 13:03:49 2015 -0500

    do not use grep -P
    
    This might make it work on MAC


>---------------------------------------------------------------

49b627d9fff3badff3335869fa28ea949e71ec96
 test.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test.sh b/test.sh
index 34e1408..d6674fa 100755
--- a/test.sh
+++ b/test.sh
@@ -58,7 +58,9 @@ echo "*** running test suite..."
 # check for tabs in code:
 for f in `find . -name \*.py`
 do
-    grep -P "\t" -q $f && echo "ERROR: tabs found in '$f'" && exit 0
+    grep $'\t' -q $f && \
+	echo "ERROR: tabs found in '$f':" && \
+	grep -n $'\t' $f && exit 0
 done
 
 cd tests



More information about the CIG-COMMITS mailing list