Skip to content

Commit

Permalink
Merge pull request #1933 from r2d4/windows-fix
Browse files Browse the repository at this point in the history
Use os.Chmod instead of File.Chmod
  • Loading branch information
r2d4 committed Sep 11, 2017
2 parents d6049c1 + f8c1651 commit ad8ea13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/exec_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (*ExecRunner) Copy(f assets.CopyableFile) error {
if err != nil {
return errors.Wrapf(err, "error converting permissions %s to integer", perms)
}
if err := target.Chmod(os.FileMode(perms)); err != nil {
if err := os.Chmod(targetPath, os.FileMode(perms)); err != nil {
return errors.Wrapf(err, "error changing file permissions for %s", targetPath)
}

Expand Down

0 comments on commit ad8ea13

Please sign in to comment.