From 1cf83cc50c3c81c4478ff1947588fd410e9f62ad Mon Sep 17 00:00:00 2001 From: Aaron Prindle Date: Wed, 13 Sep 2017 15:58:53 -0700 Subject: [PATCH] use path.join instead of filepath.join for ssh copy --- pkg/minikube/bootstrapper/ssh_runner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/minikube/bootstrapper/ssh_runner.go b/pkg/minikube/bootstrapper/ssh_runner.go index 7a6f8dacb6c6..ba8cdc1b28f7 100644 --- a/pkg/minikube/bootstrapper/ssh_runner.go +++ b/pkg/minikube/bootstrapper/ssh_runner.go @@ -19,7 +19,7 @@ package bootstrapper import ( "fmt" "io" - "path/filepath" + "path" "sync" "github.com/golang/glog" @@ -81,7 +81,7 @@ func (s *SSHRunner) CombinedOutput(cmd string) (string, error) { // Copy copies a file to the remote over SSH. func (s *SSHRunner) Copy(f assets.CopyableFile) error { - deleteCmd := fmt.Sprintf("sudo rm -f %s", filepath.Join(f.GetTargetDir(), f.GetTargetName())) + deleteCmd := fmt.Sprintf("sudo rm -f %s", path.Join(f.GetTargetDir(), f.GetTargetName())) mkdirCmd := fmt.Sprintf("sudo mkdir -p %s", f.GetTargetDir()) for _, cmd := range []string{deleteCmd, mkdirCmd} { if err := s.Run(cmd); err != nil {