diff options
Diffstat (limited to 'unix.go')
| -rw-r--r-- | unix.go | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -6,7 +6,6 @@ import ( "io/ioutil" "os" "os/exec" - "os/user" "path/filepath" "regexp" "strconv" @@ -222,12 +221,7 @@ func IsDirectory(path string) bool { } func (rs *RepoStatus) Exists(filename string) bool { - usr, err := user.Current() - if err != nil { - log.Error(err, "Exists() error: could not determine what your username is") - return false - } - testf := filepath.Join(usr.HomeDir, "go/src/", rs.String(), filename) + testf := filepath.Join(rs.Path(), filename) if Exists(testf) { return true } |
