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 5e362d3 commit 15bfb89Copy full SHA for 15bfb89
1 file changed
src/package/pie.php
@@ -106,9 +106,8 @@ private function downloadLatestPiePhar(string $targetPath): void
106
throw new \RuntimeException('PIE download did not produce expected file: ' . $downloaded);
107
}
108
109
- if (!@copy($downloaded, $targetPath)) {
+ if ($downloaded !== $targetPath && !@copy($downloaded, $targetPath)) {
110
throw new \RuntimeException('Failed to stage pie.phar to build directory.');
111
112
- @chmod($targetPath, 0644);
113
114
0 commit comments