mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-09-05 20:58:36 +00:00
Merge pull request #1 from Progressive/feature/config-in-environment
added env expansion
This commit is contained in:
@@ -727,6 +727,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:") {
|
||||
|
Reference in New Issue
Block a user