Default values for USER env var
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
e0db7ab0de
commit
33b0487a93
6
build.sh
6
build.sh
|
@ -2,8 +2,8 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
|
|
||||||
tree_output=$(mktemp "/tmp/$USER.XXXXXXXXXX")
|
tree_output=$(mktemp "/tmp/${USER:-lucidiot-wiki}.XXXXXXXXXX")
|
||||||
tree_file=$(mktemp "/tmp/$USER.XXXXXXXXXX")
|
tree_file=$(mktemp "/tmp/${USER:-lucidiot-wiki}.XXXXXXXXXX")
|
||||||
trap "rm \"$tree_output\" \"$tree_file\"" EXIT
|
trap "rm \"$tree_output\" \"$tree_file\"" EXIT
|
||||||
|
|
||||||
# Variables included in the pandoc template
|
# Variables included in the pandoc template
|
||||||
|
@ -20,7 +20,7 @@ function convert {
|
||||||
--table-of-contents \
|
--table-of-contents \
|
||||||
--template template.html \
|
--template template.html \
|
||||||
--highlight-style zenburn \
|
--highlight-style zenburn \
|
||||||
--css "/~$USER/theme.css" \
|
--css "/~${USER:-lucidiot}/theme.css" \
|
||||||
--variable generator="$generator" \
|
--variable generator="$generator" \
|
||||||
--variable now="$now" \
|
--variable now="$now" \
|
||||||
-o "$2" \
|
-o "$2" \
|
||||||
|
|
Loading…
Reference in New Issue