Default values for USER env var
continuous-integration/drone/push Build is failing Details

This commit is contained in:
~lucidiot 2022-09-16 09:04:15 +02:00
parent e0db7ab0de
commit 33b0487a93
1 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
set -euo pipefail
shopt -s globstar
tree_output=$(mktemp "/tmp/$USER.XXXXXXXXXX")
tree_file=$(mktemp "/tmp/$USER.XXXXXXXXXX")
tree_output=$(mktemp "/tmp/${USER:-lucidiot-wiki}.XXXXXXXXXX")
tree_file=$(mktemp "/tmp/${USER:-lucidiot-wiki}.XXXXXXXXXX")
trap "rm \"$tree_output\" \"$tree_file\"" EXIT
# Variables included in the pandoc template
@ -20,7 +20,7 @@ function convert {
--table-of-contents \
--template template.html \
--highlight-style zenburn \
--css "/~$USER/theme.css" \
--css "/~${USER:-lucidiot}/theme.css" \
--variable generator="$generator" \
--variable now="$now" \
-o "$2" \