More accurate and reduces false positives since <distributionManagement>
sections have <repository> sections.
Change-Id: I062296378e9b8fdba793188d1150fe2120772071
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
# 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 ]