Merge pull request #632 from Progressive-Insurance/master

Read Environment Variables in Settings.txt
This commit is contained in:
Corey Butler
2021-09-11 00:24:13 -05:00
committed by GitHub

View File

@@ -749,6 +749,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:") {