Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea7b289

Browse files
committed
WIP
1 parent 586e7cb commit ea7b289

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

agent/agent.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,13 +1406,15 @@ func expandDirectory(dir string) (string, error) {
14061406
return "", err
14071407
}
14081408
dir = filepath.Join(home, dir[1:])
1409+
return os.ExpandEnv(dir), nil
14091410
}
1411+
14101412
if !filepath.IsAbs(dir) {
14111413
home, err := userHomeDir()
14121414
if err != nil {
14131415
return "", err
14141416
}
14151417
dir = filepath.Join(home, dir)
1418+
return dir, nil
14161419
}
1417-
return os.ExpandEnv(dir), nil
14181420
}

0 commit comments

Comments
 (0)