Skip to content

Commit

Permalink
use path.join instead of filepath.join for ssh copy
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-prindle committed Sep 13, 2017
1 parent e6da47f commit 1cf83cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/minikube/bootstrapper/ssh_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package bootstrapper
import (
"fmt"
"io"
"path/filepath"
"path"
"sync"

"github.com/golang/glog"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1cf83cc

Please sign in to comment.