diff --git a/pkg/node/worker.go b/pkg/node/worker.go index f5f85b8..4d1a220 100644 --- a/pkg/node/worker.go +++ b/pkg/node/worker.go @@ -2,7 +2,7 @@ package node import ( "encoding/base64" - "path" + "path/filepath" "time" "forge.lthn.ai/Snider/Mining/pkg/logging" @@ -361,8 +361,8 @@ func (worker *Worker) handleDeploy(conn *PeerConnection, msg *Message) (*Message case BundleMiner, BundleFull: // Determine installation directory // We use xdg.DataHome/lethean-desktop/miners/ - minersDir := path.Join(xdg.DataHome, "lethean-desktop", "miners") - installDir := path.Join(minersDir, payload.Name) + minersDir := filepath.Join(xdg.DataHome, "lethean-desktop", "miners") + installDir := filepath.Join(minersDir, payload.Name) logging.Info("deploying miner bundle", logging.Fields{ "name": payload.Name,