1
0
Fork 0

Change permission of bin links if they exist and are already links

pull/282/head
Beau Simensen 2012-02-09 10:21:16 -08:00
parent 8123de2fea
commit 04f0ecfc01
1 changed files with 6 additions and 0 deletions

View File

@ -147,6 +147,12 @@ class LibraryInstaller implements InstallerInterface
foreach ($package->getBinaries() as $bin) {
$link = $this->binDir.'/'.basename($bin);
if (file_exists($link)) {
if (is_link($link)) {
// likely leftover from a previous install, make sure
// that the target is still executable in case this
// is a fresh install of the vendor.
chmod($link, 0777);
}
$this->io->write('Skipped installation of '.$bin.' for package '.$package->getName().', name conflicts with an existing file');
continue;
}