Skip to content
Snippets Groups Projects

WIP: Resolve "Add asciidoctor syntax check to CI tests"

Closed Jon Azpiazu requested to merge 17-add-asciidoctor-syntax-check-to-ci-tests into master
1 unresolved thread
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -10,7 +10,9 @@ if [ -z "$1" ] ; then
@@ -10,7 +10,9 @@ if [ -z "$1" ] ; then
exit 1
exit 1
fi
fi
for foo in $(find "$1" -name '*.adoc') ; do asciidoctor $foo 2>&1 | tee -a output.log ; done
while IFS= read -r -d '' filename; do
 
asciidoctor "$filename" 2>&1 | tee -a output.log
 
done < <(find "$1" -name '*.adoc' -type f -print0)
adoc_errors=0 ; adoc_warnings=0
adoc_errors=0 ; adoc_warnings=0
adoc_errors=$(grep -c "ERROR" output.log)
adoc_errors=$(grep -c "ERROR" output.log)
adoc_warnings=$(grep -c "WARNING" output.log)
adoc_warnings=$(grep -c "WARNING" output.log)
Loading