Allow for more complex Jinja templates

By calling envtpl with a filename, Jinja can perform includes, which is useful for more general machine configuration.
This commit is contained in:
Brayden Banks 2018-06-11 19:31:10 -07:00 committed by GitHub
parent 09a018ea5a
commit 0b9f537909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
yadm
View File

@ -223,7 +223,7 @@ function alt() {
YADM_HOSTNAME="$local_host" \
YADM_USER="$local_user" \
YADM_DISTRO=$(query_distro) \
"$ENVTPL_PROGRAM" < "$tracked_file" > "$real_file"
"$ENVTPL_PROGRAM" --keep-template "$tracked_file" -o "$real_file"
else
debug "envtpl not available, not creating $real_file from template $tracked_file"
[ -n "$loud" ] && echo "envtpl not available, not creating $real_file from template $tracked_file"