diff --git a/core/core.go b/core/core.go index 0ba88f30..e5ae7478 100644 --- a/core/core.go +++ b/core/core.go @@ -39,7 +39,7 @@ func ExpandPath(path string) (string, error) { if err != nil { return "", err } - // Replace only the first occurence of ~ + // Replace only the first occurrence of ~ path = strings.Replace(path, "~", usr.HomeDir, 1) } return filepath.Abs(path)