We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3760e8 commit 7c2e292Copy full SHA for 7c2e292
build.books.sh
@@ -2,10 +2,13 @@
2
3
set -e
4
5
+# safer separator for sed
6
+sep=$'\001'
7
+
8
if [ -v GITHUB_REF_NAME ]; then
- sed "s/%%FOOTER_VERSION%%/${GITHUB_REF_NAME}/" meta.tmpl.tex > meta.tex
9
+ sed "s${sep}%%FOOTER_VERSION%%${sep}${GITHUB_REF_NAME}${sep}" meta.tmpl.tex > meta.tex
10
else
- sed "s/%%FOOTER_VERSION%%/UNDEFINED VERSION/" meta.tmpl.tex > meta.tex
11
+ sed "s${sep}%%FOOTER_VERSION%%${sep}UNDEFINED VERSION${sep}" meta.tmpl.tex > meta.tex
12
fi
13
14
docker run --rm -v `pwd`:/data uppalabharath/pandoc-latex-cjk:latest --from=gfm+rebase_relative_paths -o learn-go-with-tests.pdf \
0 commit comments