This commit is contained in:
Dennis Eichhorn 2020-02-25 21:05:23 +01:00
parent c79a711fd3
commit f24da643ec

View File

@ -95,11 +95,11 @@ final class ApplicationManager
*/ */
public function install(string $source, string $destination) : void public function install(string $source, string $destination) : void
{ {
if (\file_exists($destination) || !\file_exists($source)) { if (!\file_exists($source) || \file_exists($destination)) {
return; return;
} }
$app = $this->loadInfo(\rtrim('/\\', $source) . '/info.json'); $app = $this->loadInfo(\rtrim($source, '/\\') . '/info.json');
$this->applications[$app->getInternalName()] = $app; $this->applications[$app->getInternalName()] = $app;
$this->installFiles($source, $destination); $this->installFiles($source, $destination);