From: <jbo...@li...> - 2006-05-26 17:46:11
|
Author: adamw Date: 2006-05-26 13:46:03 -0400 (Fri, 26 May 2006) New Revision: 4450 Modified: labs/jbosslabs/trunk/portal-extensions/svn-hooks/xml-check.sh Log: http://jira.jboss.com/jira/browse/JBLAB-684 Modified: labs/jbosslabs/trunk/portal-extensions/svn-hooks/xml-check.sh =================================================================== --- labs/jbosslabs/trunk/portal-extensions/svn-hooks/xml-check.sh 2006-05-26 17:16:21 UTC (rev 4449) +++ labs/jbosslabs/trunk/portal-extensions/svn-hooks/xml-check.sh 2006-05-26 17:46:03 UTC (rev 4450) @@ -17,7 +17,7 @@ type=$token else # Only checking a file if it wasn't deleted and is an .xml file - if [ "$type" != "D" -a -n "`echo $token | grep .*\.xml`" ] + if [ "$type" != "D" -a -n "`echo $token | grep .*[.]xml$`" ] then $SVNLOOK cat $OPTS $REPOS $token | xmllint - >/dev/null || { echo "Error parsing XML; aborting commit." >&2 |