Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 586e7cb commit ea7b289Copy full SHA for ea7b289
agent/agent.go
@@ -1406,13 +1406,15 @@ func expandDirectory(dir string) (string, error) {
1406
return "", err
1407
}
1408
dir = filepath.Join(home, dir[1:])
1409
+ return os.ExpandEnv(dir), nil
1410
1411
+
1412
if !filepath.IsAbs(dir) {
1413
home, err := userHomeDir()
1414
if err != nil {
1415
1416
1417
dir = filepath.Join(home, dir)
1418
+ return dir, nil
1419
- return os.ExpandEnv(dir), nil
1420
0 commit comments