Skip to content

Instantly share code, notes, and snippets.

@feuyeux
Created August 9, 2016 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feuyeux/93fe1e4b808192c9799a29fbbe41ffcd to your computer and use it in GitHub Desktop.
Save feuyeux/93fe1e4b808192c9799a29fbbe41ffcd to your computer and use it in GitHub Desktop.
#!/bin/bash
function a() {
for file in "$1"/*
do
if [ ! -d "${file}" ] ; then
asciidoctor "${file}"
else
traverse "${file}"
fi
done
}
traverse "$@"
# ./asciidoctor+.sh /Users/erichan/mycode/elasticsearch/docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment