mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
refactor: join cache path correctly
This commit is contained in:
parent
f865f92633
commit
2ccc88fd4b
|
@ -769,7 +769,7 @@ func returnOrBuildCachePath(path string) string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
// validate oh-my-posh folder, if non existent, create it
|
// 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 {
|
if _, err := os.Stat(cachePath); err == nil {
|
||||||
return cachePath
|
return cachePath
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue