summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-09-07 13:59:10 +0200
committerThomas Haller <thaller@redhat.com>2022-09-07 13:59:48 +0200
commit684ed297a7fd01ae2ee0e37d489bc8fbc9178fb9 (patch)
tree12268dd13b124958307d99310c15e66f5edd3476
parentf809ba14df46558ba67ed0b6c3b8a31658774283 (diff)
downloadmobile-broadband-provider-info-684ed297a7fd01ae2ee0e37d489bc8fbc9178fb9.tar.gz
build: reject and whitespace in XML via unit test
Note only reject a whitespace right before "<", but also in between tabs.
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8126a0e..9de5196 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,5 +18,5 @@ apns-conf.xml: $(top_srcdir)/apns-conf.xsl $(top_srcdir)/$(SP_XML_DB)
pkgdata_DATA = apns-conf.xml
check-local:
- grep '^[[:blank:]]* <\|[[:blank:]]$$' serviceproviders.xml && exit 1 || :
+ grep '^[[:blank:]]* [[:blank:]]*<\|[[:blank:]]$$' serviceproviders.xml && exit 1 || :
xmllint --valid $(top_srcdir)/$(SP_XML_DB) 2>&1 >/dev/null