Silence symlink() error

If not silenced it gives "symlink(): Operation not supported" on my ubuntu system with mounted cifs share.
main
Markus Thielen 9 years ago
parent 4d134ce8a2
commit bd802407a8

@ -239,7 +239,7 @@ class LibraryInstaller implements InstallerInterface
// when using it in smbfs mounted folder
$relativeBin = $this->filesystem->findShortestPath($link, $binPath);
chdir(dirname($link));
if (false === symlink($relativeBin, $link)) {
if (false === @symlink($relativeBin, $link)) {
throw new \ErrorException();
}
} catch (\ErrorException $e) {

Loading…
Cancel
Save