From c63f7e9f64ee394b3311edb7f36f56fd786d145a Mon Sep 17 00:00:00 2001 From: a1346054 Date: Tue, 31 Aug 2021 17:01:47 +0000 Subject: shell scripts: fix shellcheck warnings --- Documentation/MANPAGE-render.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Documentation') 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 -- cgit v1.2.3