From a8d89665de6da20a8793886e03f153e922f6e519 Mon Sep 17 00:00:00 2001 From: Michael Reed Date: Thu, 13 Jul 2017 01:36:27 -0400 Subject: www/publish.sh: Clean up shellcheck warnings All of the warnings were of type SC2086 [1]: Double quote to prevent globbing and word splitting. [1]: https://github.com/koalaman/shellcheck/wiki/Sc2086 --- www/publish.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'www/publish.sh') diff --git a/www/publish.sh b/www/publish.sh index 9c3a4fcd..8e25d920 100755 --- a/www/publish.sh +++ b/www/publish.sh @@ -70,14 +70,14 @@ TOC=$(grep -q "^x-toc-enable: true$" "$TMPFILE" && printf '%s\n' "--toc --toc-de SMART=$(pandoc -v | grep -q '2\.0' || printf '%s\n' "--smart") || SMART="" # chuck through pandoc -pandoc $TOC $SMART "$TMPFILE" -s --css /global.css $OPTS \ - --template template.html --metadata return="$RETURN"> $FILE.html +pandoc $TOC $SMART "$TMPFILE" -s --css /global.css "$OPTS" \ + --template template.html --metadata return="$RETURN" > "$FILE.html" # additionally, produce bare file for RSS -pandoc $1 > $FILE.bare.html +pandoc "$1" > "$FILE.bare.html" # generate section title anchors as [link] -sed -i -e 's_^\(.*\)__' $FILE.html +sed -i -e 's_^\(.*\)__' "$FILE.html" # clean up temporary file rm -f "$TMPFILE" -- cgit v1.2.3-70-g09d2