We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa7f108 commit f60f497Copy full SHA for f60f497
src/Traits/CopiesToBuildDirectory.php
@@ -111,14 +111,13 @@ public function copyToBuildDirectory(): bool
111
} catch (Throwable $e) {
112
warning('[WARNING] '.$e->getMessage());
113
}
114
-
115
- $perms = fileperms($item->getPathname());
116
117
- if ($perms === false) {
118
- continue;
+
+ if (PHP_OS_FAMILY !== 'Windows') {
+ $perms = fileperms($item->getPathname());
+ if ($perms !== false) {
+ chmod($target, $perms);
119
+ }
120
121
- chmod($target, $perms);
122
123
124
$this->keepRequiredDirectories();
0 commit comments