aboutsummaryrefslogtreecommitdiff
path: root/Documentation/MANPAGE-render.bash
diff options
context:
space:
mode:
authora13460542021-08-31 17:01:47 +0000
committerrfjakob2021-09-01 10:22:01 +0200
commitc63f7e9f64ee394b3311edb7f36f56fd786d145a (patch)
tree84dec7ad0b4759532f622174c008e3aa645c5a29 /Documentation/MANPAGE-render.bash
parentc505e73a13d8e2083b53c5c1af1f937b46665abd (diff)
shell scripts: fix shellcheck warnings
Diffstat (limited to 'Documentation/MANPAGE-render.bash')
-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