aboutsummaryrefslogtreecommitdiffstats
path: root/convert_md_to_asciidoc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'convert_md_to_asciidoc.sh')
-rwxr-xr-xconvert_md_to_asciidoc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert_md_to_asciidoc.sh b/convert_md_to_asciidoc.sh
index bec8985..79b6442 100755
--- a/convert_md_to_asciidoc.sh
+++ b/convert_md_to_asciidoc.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
for markdown in ./mds/*.md; do
- name=$(basename -s ".md" ${markdown})
- pandoc -t asciidoc -f markdown ${markdown} > ./mds/${name}.txt
+ name=$(basename -s ".md" "${markdown}")
+ pandoc -t asciidoc -f markdown "${markdown}" > ./mds/"${name}".txt
done