From 0b9f5379098f1510b10473b27446afc6c1e9c9dc Mon Sep 17 00:00:00 2001 From: Brayden Banks Date: Mon, 11 Jun 2018 19:31:10 -0700 Subject: [PATCH] Allow for more complex Jinja templates By calling envtpl with a filename, Jinja can perform includes, which is useful for more general machine configuration. --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index e55a287..7c9dcbb 100755 --- a/yadm +++ b/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"