diff --git a/utils/path.go b/utils/path.go index 53e87c1..a28042f 100644 --- a/utils/path.go +++ b/utils/path.go @@ -40,7 +40,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)