Skip to content

Commit

Permalink
Use path instead of filepath for cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
r2d4 committed Oct 11, 2017
1 parent 320b5cd commit 4e59f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"crypto"
"fmt"
"os"
"path/filepath"
"path"
"strings"
"time"

Expand Down Expand Up @@ -361,7 +361,7 @@ func generateConfig(k8s bootstrapper.KubernetesConfig) (string, error) {

func maybeDownloadAndCache(binary, version string) (string, error) {
targetDir := constants.MakeMiniPath("cache", version)
targetFilepath := filepath.Join(targetDir, binary)
targetFilepath := path.Join(targetDir, binary)

_, err := os.Stat(targetFilepath)
// If it exists, do no verification and continue
Expand Down

0 comments on commit 4e59f4b

Please sign in to comment.