check-doc-syntax: Make this work again

Commit ed90616b77 changed the way the awk script gets invoked. Due to a
missing "test", this resulted in the awk script never getting invoked at all.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-05-06 21:41:28 +02:00
parent 3e02dccb97
commit a184de9064

View file

@ -71,7 +71,7 @@ if echo $FILES | xargs grep "$note_regexp" /dev/null; then
fi >&2
# Only run the syntax checker on the source files (not doc/)
if -e ./check-doc-syntax.awk; then
if test -e ./check-doc-syntax.awk; then
if echo $FILES | xargs ./check-doc-syntax.awk ; then
:
else