make sure relative paths from custom installers to not break the installation of binaries
parent
cc37e4b0b8
commit
f0842213e0
|
@ -198,6 +198,12 @@ class LibraryInstaller implements InstallerInterface
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// in case a custom installer returned a relative path for the
|
||||||
|
// $package, we can now safely turn it into a absolute path (as we
|
||||||
|
// already checked the binary's existence). The following helpers
|
||||||
|
// will require absolute paths to work properly.
|
||||||
|
$binPath = realpath($binPath);
|
||||||
|
|
||||||
$this->initializeBinDir();
|
$this->initializeBinDir();
|
||||||
$link = $this->binDir.'/'.basename($bin);
|
$link = $this->binDir.'/'.basename($bin);
|
||||||
if (file_exists($link)) {
|
if (file_exists($link)) {
|
||||||
|
|
Loading…
Reference in New Issue