Skip to content

Commit 0247458

Browse files
committed
we were installing to wrong dir if source name != lib name
1 parent 656a58c commit 0247458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SPC/builder/LibraryBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ protected function installLicense(): void
357357
}
358358
foreach ($license_files as $index => $license) {
359359
if ($license['type'] === 'text') {
360-
FileSystem::writeFile(BUILD_ROOT_PATH . '/source-licenses/' . $this->getName() . "/{$index}.txt", $license['text']);
360+
FileSystem::writeFile(BUILD_ROOT_PATH . "/source-licenses/{$source}/{$index}.txt", $license['text']);
361361
continue;
362362
}
363363
if ($license['type'] === 'file') {
364-
copy($this->source_dir . '/' . $license['path'], BUILD_ROOT_PATH . '/source-licenses/' . $this->getName() . "/{$index}.txt");
364+
copy($this->source_dir . '/' . $license['path'], BUILD_ROOT_PATH . "/source-licenses/{$source}/{$index}.txt");
365365
}
366366
}
367367
}

0 commit comments

Comments
 (0)