Skip to content

Commit 016a1cb

Browse files
authored
fix: invalid filepath in the setup cmd on windows (#468)
Signed-off-by: rick <[email protected]> Co-authored-by: rick <[email protected]>
1 parent 5178993 commit 016a1cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/installer/check.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,8 @@ type proxyServer struct {
568568

569569
// GetProxyServers returns the proxy servers
570570
func GetProxyServers() []string {
571-
configFile := sysos.ExpandEnv("$HOME/.config/hd-home/proxy.yaml")
571+
home, _ := homedir.Dir()
572+
configFile := filepath.Join(home, ".config/hd-home/proxy.yaml")
572573
data, err := sysos.ReadFile(configFile)
573574
if err == nil {
574575
proxyServer := &proxyServer{}

0 commit comments

Comments
 (0)