diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-07-13 19:33:55 +0000 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2017-07-13 19:33:55 +0000 |
commit | 8692bfaf02fd6fffba1e743f1923574f83932853 (patch) | |
tree | 18520d6ee605ac79c3a54dbbc303862cb9862ab5 | |
parent | 3b5612ecccb3fa0b54e44a9014abb90750dbd6d9 (diff) | |
parent | a8d89665de6da20a8793886e03f153e922f6e519 (diff) | |
download | librebootfr-8692bfaf02fd6fffba1e743f1923574f83932853.tar.gz librebootfr-8692bfaf02fd6fffba1e743f1923574f83932853.zip |
Merge branch 'publish-sh-shellcheck' of mreed/libreboot into master
-rwxr-xr-x | www/publish.sh | 8 |
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" |