From d2bd8b3413a13711cbc9d0df24a6439137266a6c Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Sun, 18 Sep 2022 19:55:09 +0200 Subject: [PATCH] variable expansion for directory paths --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 431538d..0def4ee 100644 --- a/main.go +++ b/main.go @@ -55,7 +55,10 @@ func ReadConfigFile() error { return err } + ConfigFile.TemplateDir = os.ExpandEnv(ConfigFile.TemplateDir) + ConfigFile.TargetDir = os.ExpandEnv(ConfigFile.TargetDir) RecursiveEnvLookupForMap(ConfigFile.Globals) + return nil }