Merge pull request #17734 from scottwinkler/master

Keep permissions when copying file for Linux
This commit is contained in:
James Bardin 2018-04-04 15:25:25 -04:00 committed by GitHub
commit da3b4e9abc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ func CopyFile(src, dst string) (err error) {
return return
} }
err = copyFileContents(src, dst) err = copyFileContents(src, dst)
os.Chmod(dst, sfi.Mode())
return return
} }