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.
2 parents ecb7114 + 0311d09 commit 1841c71Copy full SHA for 1841c71
src/Commands/GenerateClient.php
@@ -158,7 +158,7 @@ private function copyLicenseToClientPackage(): void
158
$source = !is_null($externalSource) && file_exists($externalSource) ? $externalSource : $internalSource;
159
160
$dest = $this->outputDir . DIRECTORY_SEPARATOR . 'LICENSE.md';
161
- if (!file_exists($dest) && file_exists($source)) {
+ if (!file_exists($dest) && file_exists($source) && filesize($source) > 0) {
162
copy($source, $dest);
163
$this->info("Template LICENSE.md copied to package");
164
}
0 commit comments