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:
parent
09a018ea5a
commit
0b9f537909
1 changed files with 1 additions and 1 deletions
2
yadm
2
yadm
|
@ -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…
Reference in a new issue