Skip to content

Commit 1cf83cc

Browse files
committed
use path.join instead of filepath.join for ssh copy
1 parent e6da47f commit 1cf83cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/minikube/bootstrapper/ssh_runner.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package bootstrapper
1919
import (
2020
"fmt"
2121
"io"
22-
"path/filepath"
22+
"path"
2323
"sync"
2424

2525
"github.com/golang/glog"
@@ -81,7 +81,7 @@ func (s *SSHRunner) CombinedOutput(cmd string) (string, error) {
8181

8282
// Copy copies a file to the remote over SSH.
8383
func (s *SSHRunner) Copy(f assets.CopyableFile) error {
84-
deleteCmd := fmt.Sprintf("sudo rm -f %s", filepath.Join(f.GetTargetDir(), f.GetTargetName()))
84+
deleteCmd := fmt.Sprintf("sudo rm -f %s", path.Join(f.GetTargetDir(), f.GetTargetName()))
8585
mkdirCmd := fmt.Sprintf("sudo mkdir -p %s", f.GetTargetDir())
8686
for _, cmd := range []string{deleteCmd, mkdirCmd} {
8787
if err := s.Run(cmd); err != nil {

0 commit comments

Comments
 (0)