Remove empty bin dir after all binaries have been removed from it, fixes #3451
parent
9f2e562e48
commit
80f1e4372a
|
@ -266,6 +266,11 @@ class LibraryInstaller implements InstallerInterface
|
|||
$this->filesystem->unlink($link.'.bat');
|
||||
}
|
||||
}
|
||||
|
||||
// attempt removing the bin dir in case it is left empty
|
||||
if ($this->filesystem->isDirEmpty($this->binDir)) {
|
||||
@rmdir($this->binDir);
|
||||
}
|
||||
}
|
||||
|
||||
protected function initializeVendorDir()
|
||||
|
|
Loading…
Reference in New Issue