aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-07-13 19:33:55 +0000
committerGogs <gogitservice@gmail.com>2017-07-13 19:33:55 +0000
commit8692bfaf02fd6fffba1e743f1923574f83932853 (patch)
tree18520d6ee605ac79c3a54dbbc303862cb9862ab5
parent3b5612ecccb3fa0b54e44a9014abb90750dbd6d9 (diff)
parenta8d89665de6da20a8793886e03f153e922f6e519 (diff)
downloadlibrebootfr-8692bfaf02fd6fffba1e743f1923574f83932853.tar.gz
librebootfr-8692bfaf02fd6fffba1e743f1923574f83932853.zip
Merge branch 'publish-sh-shellcheck' of mreed/libreboot into master
-rwxr-xr-xwww/publish.sh8
1 files changed, 4 insertions, 4 deletions
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_^<h\([123]\) id="\(.*\)">\(.*\)</h\1>_<div class="h"><h\1 id="\2">\3</h\1><a aria-hidden="true" href="#\2">[link]</a></div>_' $FILE.html
+sed -i -e 's_^<h\([123]\) id="\(.*\)">\(.*\)</h\1>_<div class="h"><h\1 id="\2">\3</h\1><a aria-hidden="true" href="#\2">[link]</a></div>_' "$FILE.html"
# clean up temporary file
rm -f "$TMPFILE"