new directory

This commit is contained in:
Roy Olav Purser 2021-03-25 08:20:40 +01:00
parent 22fcaa1b8b
commit b1394b76a5
No known key found for this signature in database
GPG Key ID: 0BA77797F072BC52

View File

@ -115,7 +115,14 @@ func (c *Config) GetInt(key string)(int64) {
return 0 return 0
} }
func (c *Config) GetDirectory(key string)(string) { func (c *Config) GetDirectory(key string)(string) {
return c.GetString(key) if c.parsed {
upper := strings.ToUpper(key)
entry, ok := c.env[upper]
if ok {
return entry.parsed.strval
}
}
return ""
} }
func (c *Config) GetString(key string)(string) { func (c *Config) GetString(key string)(string) {
if c.parsed { if c.parsed {