There was an error while loading. Please reload this page.
1 parent 37f604c commit 5dcdaafCopy full SHA for 5dcdaaf
1 file changed
src/SPC/builder/LibraryBase.php
@@ -357,11 +357,11 @@ protected function installLicense(): void
357
}
358
foreach ($license_files as $index => $license) {
359
if ($license['type'] === 'text') {
360
- FileSystem::writeFile(BUILD_ROOT_PATH . '/source-licenses/' . $this->getName() . "/{$index}.txt", $license['text']);
+ FileSystem::writeFile(BUILD_ROOT_PATH . "/source-licenses/{$source}/{$index}.txt", $license['text']);
361
continue;
362
363
if ($license['type'] === 'file') {
364
- copy($this->source_dir . '/' . $license['path'], BUILD_ROOT_PATH . '/source-licenses/' . $this->getName() . "/{$index}.txt");
+ copy($this->source_dir . '/' . $license['path'], BUILD_ROOT_PATH . "/source-licenses/{$source}/{$index}.txt");
365
366
367
0 commit comments