X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=blobdiff_plain;f=validate-directory;h=a0164ed890774a5f91d305805467350cfb3c8883;hp=6615bef29099ae327222a436d2b22267b96aa1cb;hb=2adf11af91685c88f66ab5464b5ed5398e2b5d50;hpb=a07037e829c4033dae81b3a71bce382bd7eefd1c diff --git a/validate-directory b/validate-directory index 6615bef..a0164ed 100755 --- a/validate-directory +++ b/validate-directory @@ -10,7 +10,7 @@ set +e shopt -s nullglob for x in *.html; do echo "$BASE_URL/$x" - if head -1 "$x" | egrep -q '(xml|XHTML)'; then + if head -n 1 "$x" | egrep -q '(xml|XHTML)'; then SP_CHARSET_FIXED=YES SP_ENCODING=XML \ SGML_CATALOG_FILES=/usr/share/sgml/declaration/xml.soc \ nsgmls -wxml -s "$BASE_URL/$x"