diff --git a/tools/terraform-bundle/package.go b/tools/terraform-bundle/package.go index 096ef5ddf..c705272b4 100644 --- a/tools/terraform-bundle/package.go +++ b/tools/terraform-bundle/package.go @@ -36,6 +36,7 @@ func CopyFile(src, dst string) (err error) { } dfi, err := os.Stat(dst) if err != nil { + os.Chmod(dst, sfi.Mode()) if !os.IsNotExist(err) { return }