refactor: join cache path correctly

This commit is contained in:
Jan De Dobbeleer 2022-02-28 12:55:16 +01:00 committed by Jan De Dobbeleer
parent f865f92633
commit 2ccc88fd4b

View file

@ -769,7 +769,7 @@ func returnOrBuildCachePath(path string) string {
return ""
}
// validate oh-my-posh folder, if non existent, create it
cachePath := path + "/oh-my-posh"
cachePath := filepath.Join(path, "oh-my-posh")
if _, err := os.Stat(cachePath); err == nil {
return cachePath
}