Skip to content

Commit 1841c71

Browse files
authored
Merge pull request #14 from ensi-platform/cloudtech-23
CLOUDTECH-23
2 parents ecb7114 + 0311d09 commit 1841c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/GenerateClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private function copyLicenseToClientPackage(): void
158158
$source = !is_null($externalSource) && file_exists($externalSource) ? $externalSource : $internalSource;
159159

160160
$dest = $this->outputDir . DIRECTORY_SEPARATOR . 'LICENSE.md';
161-
if (!file_exists($dest) && file_exists($source)) {
161+
if (!file_exists($dest) && file_exists($source) && filesize($source) > 0) {
162162
copy($source, $dest);
163163
$this->info("Template LICENSE.md copied to package");
164164
}

0 commit comments

Comments
 (0)