diff --git a/roles/home-cli/files/markdown.sh b/roles/home-cli/files/markdown.sh index 05a67af..a078ca9 100644 --- a/roles/home-cli/files/markdown.sh +++ b/roles/home-cli/files/markdown.sh @@ -11,11 +11,11 @@ cat << __EOF__ __EOF__ -shift # Drop the first argument (document title). -for i in $(seq 1 $#) +while shift do - echo '
' - cmark --to html --nobreaks --unsafe --smart --validate-utf8 $(eval echo \$$i) + test -n "$1" || break # No more files. + echo "
" + cmark --to html --nobreaks --unsafe --smart --validate-utf8 $1 echo '
' done cat << __EOF__