Updated support for env var expansion

This commit is contained in:
coreybutler
2021-09-11 00:26:09 -05:00

View File

@@ -788,6 +788,7 @@ func setup() {
// Process each line and extract the value
for _, line := range lines {
line = strings.Trim(line, " \r\n")
line = os.ExpandEnv(line)
if strings.HasPrefix(line, "root:") {
env.root = filepath.Clean(strings.TrimSpace(regexp.MustCompile("^root:").ReplaceAllString(line, "")))
} else if strings.HasPrefix(line, "originalpath:") {