summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rwxr-xr-xDocumentation/MANPAGE-render.bash10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/MANPAGE-render.bash b/Documentation/MANPAGE-render.bash
index 74028ad..c141c1e 100755
--- a/Documentation/MANPAGE-render.bash
+++ b/Documentation/MANPAGE-render.bash
@@ -1,16 +1,16 @@
#!/bin/bash
set -eu
-cd $(dirname "$0")
+cd "$(dirname "$0")"
# Render Markdown to a proper man(1) manpage
-function render {
+render() {
IN=$1
OUT=$2
echo "Rendering $IN to $OUT"
- echo ".\\\" This man page was generated from $IN. View it using 'man ./$OUT'" > $OUT
- echo ".\\\"" >> $OUT
- pandoc "$IN" -s -t man >> $OUT
+ echo ".\\\" This man page was generated from $IN. View it using 'man ./$OUT'" > "$OUT"
+ echo ".\\\"" >> "$OUT"
+ pandoc "$IN" -s -t man >> "$OUT"
}
render MANPAGE.md gocryptfs.1