variable expansion for directory paths
This commit is contained in:
parent
858421789f
commit
d2bd8b3413
3
main.go
3
main.go
@ -55,7 +55,10 @@ func ReadConfigFile() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ConfigFile.TemplateDir = os.ExpandEnv(ConfigFile.TemplateDir)
|
||||||
|
ConfigFile.TargetDir = os.ExpandEnv(ConfigFile.TargetDir)
|
||||||
RecursiveEnvLookupForMap(ConfigFile.Globals)
|
RecursiveEnvLookupForMap(ConfigFile.Globals)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user