Avoid overwriting existing windows .bat proxies if they were provided by the package
parent
d81740ab7d
commit
0d06eb1f9a
|
@ -203,8 +203,13 @@ class LibraryInstaller implements InstallerInterface
|
|||
file_put_contents($link, $this->generateUnixyProxyCode($binPath, $link));
|
||||
chmod($link, 0777 & ~umask());
|
||||
$link .= '.bat';
|
||||
if (file_exists($link)) {
|
||||
$this->io->write(' Skipped installation of '.$bin.'.bat proxy for package '.$package->getName().': a .bat proxy was already installed');
|
||||
}
|
||||
}
|
||||
if (!file_exists($link)) {
|
||||
file_put_contents($link, $this->generateWindowsProxyCode($binPath, $link));
|
||||
}
|
||||
file_put_contents($link, $this->generateWindowsProxyCode($binPath, $link));
|
||||
} else {
|
||||
$cwd = getcwd();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue