Skip to content

Commit

Permalink
Merge pull request #53 from blacknon/develop
Browse files Browse the repository at this point in the history
test
  • Loading branch information
blacknon authored Jul 12, 2019
2 parents 0e534c0 + 10442e5 commit 8edb33f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ func RandomString(n int) string {
return string(b)
}

func GetAbsPath(path string) string {
// Replace home directory
usr, _ := user.Current()
path = strings.Replace(path, "~", usr.HomeDir, 1)
// func GetAbsPath(path string) string {
// // Replace home directory
// usr, _ := user.Current()
// path = strings.Replace(path, "~", usr.HomeDir, 1)

return filepath.Abs(path)
}
// return filepath.Abs(path)
// }

0 comments on commit 8edb33f

Please sign in to comment.