Skip to content
Snippets Groups Projects
Commit 1d1dd357 authored by Jon Azpiazu's avatar Jon Azpiazu
Browse files

Failsafe script

parent 388f8ecf
No related branches found
No related tags found
1 merge request!39WIP: Resolve "Add asciidoctor syntax check to CI tests"
Pipeline #19117 passed
...@@ -10,6 +10,7 @@ if [ -z "$1" ] ; then ...@@ -10,6 +10,7 @@ if [ -z "$1" ] ; then
exit 1 exit 1
fi fi
touch output.log # avoid failing if no adoc files exist
while IFS= read -r -d '' filename; do while IFS= read -r -d '' filename; do
asciidoctor "$filename" 2>&1 | tee -a output.log asciidoctor "$filename" 2>&1 | tee -a output.log
done < <(find "$1" -name '*.adoc' -type f -print0) done < <(find "$1" -name '*.adoc' -type f -print0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment