From 2ccc88fd4bd34fdd814bc8ebc7af25a17ba50201 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 28 Feb 2022 12:55:16 +0100 Subject: [PATCH] refactor: join cache path correctly --- src/environment/shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/environment/shell.go b/src/environment/shell.go index bbe3286e..df169edb 100644 --- a/src/environment/shell.go +++ b/src/environment/shell.go @@ -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 }