Skip to content

Commit

Permalink
Fix "user: Current not implemented on linux/amd64" #128
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin committed Nov 6, 2018
1 parent 7efe454 commit 8567a1c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils
import (
"flag"
"os"
"os/user"
"path/filepath"
)

var (
Expand All @@ -16,7 +16,6 @@ func init() {
}

func GetMinterHome() string {

if *MinterHome != "" {
return *MinterHome
}
Expand All @@ -27,10 +26,5 @@ func GetMinterHome() string {
return home
}

usr, err := user.Current()
if err != nil {
panic(err)
}

return usr.HomeDir + "/.minter"
return os.ExpandEnv(filepath.Join("$HOME", ".minter"))
}

0 comments on commit 8567a1c

Please sign in to comment.