Allow for more complex Jinja templates

By calling envtpl with a filename, Jinja can perform includes, which is useful for more general machine configuration.
pull/114/head
Brayden Banks 6 years ago committed by GitHub
parent 09a018ea5a
commit 0b9f537909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"

Loading…
Cancel
Save