From c77c185dce19ecd9f66807423f2b0f761be4a5e5 Mon Sep 17 00:00:00 2001 From: agatan Date: Tue, 24 Jan 2017 13:39:22 +0900 Subject: [PATCH] Fix glide home directory --- path/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path/path.go b/path/path.go index 2181c993..24d3d93d 100644 --- a/path/path.go +++ b/path/path.go @@ -46,7 +46,7 @@ func Home() string { return homeDir } - if h, err := homedir.Dir(); err != nil { + if h, err := homedir.Dir(); err == nil { homeDir = filepath.Join(h, ".glide") } else { cwd, err := os.Getwd()