Skip to content

Commit

Permalink
Fix chmod error on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Meyer <[email protected]>
Signed-off-by: Malini Valliath <[email protected]>
  • Loading branch information
ameyer-pivotal authored and ryanmoran committed Jul 22, 2020
1 parent 184347b commit 0314177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func copyFile(source, destination string) error {
return err
}

err = destinationFile.Chmod(info.Mode())
err = os.Chmod(destination, info.Mode())
if err != nil {
return err
}
Expand Down

0 comments on commit 0314177

Please sign in to comment.