fix home directory

This commit is contained in:
2022-02-16 21:58:09 +01:00
parent 1f69a7974a
commit d85470459f
3 changed files with 12 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ func initConfig() {
configPaths := []string{"."}
// Home
if home, err := homedir.Dir(); err != nil {
if home, err := homedir.Dir(); err == nil {
configPaths = append(configPaths, home)
}