mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
No need for group or world write permissions.
This commit is contained in:
parent
04f0ecfc01
commit
3cbbe1fd82
1 changed files with 3 additions and 3 deletions
|
@ -151,7 +151,7 @@ class LibraryInstaller implements InstallerInterface
|
|||
// 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);
|
||||
chmod($link, 0755);
|
||||
}
|
||||
$this->io->write('Skipped installation of '.$bin.' for package '.$package->getName().', name conflicts with an existing file');
|
||||
continue;
|
||||
|
@ -162,14 +162,14 @@ class LibraryInstaller implements InstallerInterface
|
|||
// add unixy support for cygwin and similar environments
|
||||
if ('.bat' !== substr($bin, -4)) {
|
||||
file_put_contents($link, $this->generateUnixyProxyCode($bin, $link));
|
||||
chmod($link, 0777);
|
||||
chmod($link, 0755);
|
||||
$link .= '.bat';
|
||||
}
|
||||
file_put_contents($link, $this->generateWindowsProxyCode($bin, $link));
|
||||
} else {
|
||||
symlink($bin, $link);
|
||||
}
|
||||
chmod($link, 0777);
|
||||
chmod($link, 0755);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue