mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 04:07:22 -06:00
Merge pull request #17734 from scottwinkler/master
Keep permissions when copying file for Linux
This commit is contained in:
commit
da3b4e9abc
@ -51,6 +51,7 @@ func CopyFile(src, dst string) (err error) {
|
||||
return
|
||||
}
|
||||
err = copyFileContents(src, dst)
|
||||
os.Chmod(dst, sfi.Mode())
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user