1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

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

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"