Silence symlink() error
If not silenced it gives "symlink(): Operation not supported" on my ubuntu system with mounted cifs share.pull/3923/head
parent
4d134ce8a2
commit
bd802407a8
|
@ -239,7 +239,7 @@ class LibraryInstaller implements InstallerInterface
|
||||||
// when using it in smbfs mounted folder
|
// when using it in smbfs mounted folder
|
||||||
$relativeBin = $this->filesystem->findShortestPath($link, $binPath);
|
$relativeBin = $this->filesystem->findShortestPath($link, $binPath);
|
||||||
chdir(dirname($link));
|
chdir(dirname($link));
|
||||||
if (false === symlink($relativeBin, $link)) {
|
if (false === @symlink($relativeBin, $link)) {
|
||||||
throw new \ErrorException();
|
throw new \ErrorException();
|
||||||
}
|
}
|
||||||
} catch (\ErrorException $e) {
|
} catch (\ErrorException $e) {
|
||||||
|
|
Loading…
Reference in New Issue