1
0
Fork 0

Remove empty bin dir after all binaries have been removed from it, fixes #3451

pull/4441/head
Jordi Boggiano 2015-09-22 23:54:43 +01:00
parent 9f2e562e48
commit 80f1e4372a
1 changed files with 5 additions and 0 deletions

View File

@ -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()