File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 91
91
sed -i -r "/^---$/,/^---$/s/^(version: \"?[^\"]*)(\"?)$/\1 (Git commit ${commit_hash})\2/g" "${src}"
92
92
fi
93
93
94
- gh_pages_html=$(echo "${input}" | jq -e -r '.gh_pages_html')
95
- if [ $? -eq 0 ]; then
94
+ gh_pages_html=$(echo "${input}" | jq -e -r '.gh_pages_html') || gh_pages_html=""
95
+ if [ -n "${gh_pages_html}" ]; then
96
96
echo "Rendering ${src} to gh-pages/${gh_pages_html}/index.html"
97
97
98
98
(cd "${src_dirname}" && exec \
@@ -111,8 +111,8 @@ jobs:
111
111
mv "${src_dirname}/index.html" "gh-pages/${gh_pages_html}/"
112
112
fi
113
113
114
- gh_pages_pdf=$(echo "${input}" | jq -e -r '.gh_pages_pdf')
115
- if [ $? -eq 0 ]; then
114
+ gh_pages_pdf=$(echo "${input}" | jq -e -r '.gh_pages_pdf') || gh_pages_pdf=""
115
+ if [ -n "${gh_pages_pdf}" ]; then
116
116
# [parent dir name]_[filename sans extension]_[git commit hash].pdf
117
117
pdf_name="$(basename "${src_dirname}")_${src_basename%.*}_${commit_hash}.pdf"
118
118
You can’t perform that action at this time.
0 commit comments