Skip to content

Commit

Permalink
Don't reinstall plugins from the marketplace if they are already inst…
Browse files Browse the repository at this point in the history
…alled
  • Loading branch information
tobias-kuendig committed Mar 3, 2017
1 parent 0c83b66 commit 0b95534
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Installer/PluginInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ public function install()
$vendor = strtolower($vendor);
$plugin = strtolower($plugin);

if ($remote === false) {
$this->installViaArtisan($vendor, $plugin);
continue;
}

$vendorDir = $this->createVendorDir($vendor);
$pluginDir = $vendorDir . DS . $plugin;

Expand All @@ -59,6 +54,11 @@ public function install()
continue;
}

if ($remote === false) {
$this->installViaArtisan($vendor, $plugin);
continue;
}

$repo = Repository::open($pluginDir);
try {
$repo->cloneFrom($remote, $pluginDir);
Expand Down

0 comments on commit 0b95534

Please sign in to comment.