1
0
Fork 0

Avoid overwriting existing windows .bat proxies if they were provided by the package

pull/1681/merge
Jordi Boggiano 2013-03-11 10:13:45 +01:00
parent d81740ab7d
commit 0d06eb1f9a
1 changed files with 6 additions and 1 deletions

View File

@ -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 {