Search repos against plural forms 50/15150/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 11 Feb 2015 15:41:53 +0000 (10:41 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 11 Feb 2015 15:43:02 +0000 (10:43 -0500)
More accurate and reduces false positives since <distributionManagement>
sections have <repository> sections.

Change-Id: I062296378e9b8fdba793188d1150fe2120772071
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/include-raw-check-poms.sh

index a8bcbe32d5db813ef3012f957d1d129800f57d81..929e48b332f09885782cff99c49d2c5a456d0e9d 100644 (file)
@@ -26,7 +26,7 @@ done
 # Check pom.xml for <repositories> and <pluginRepositories>
 FILE=repos.txt
 
-find . -name pom.xml | xargs grep -i '<repository>\|<pluginRepository>' > $FILE
+find . -name pom.xml | xargs grep -i '<repositories>\|<pluginRepositories>' > $FILE
 [[ $(tr -d "\r\n" < $FILE|wc -c) -eq 0 ]] && rm $FILE
 
 if [ -a $FILE ]