diff --git a/src/Command/PluginCommands/Utils/Repository/GithubRepository.php b/src/Command/PluginCommands/Utils/Repository/GithubRepository.php index 7d06a97..342d793 100644 --- a/src/Command/PluginCommands/Utils/Repository/GithubRepository.php +++ b/src/Command/PluginCommands/Utils/Repository/GithubRepository.php @@ -47,7 +47,7 @@ public function find($pluginName) public function download($plugin, $destDir) { - $dest = $destDir . '/' . $plugin['displayName']; + $dest = $destDir . '/' . $plugin['name']; if (file_exists($dest)) throw new \Exception("destination $dest already exists"); diff --git a/src/Command/PluginCommands/Utils/Repository/OmekaDotOrgRepository.php b/src/Command/PluginCommands/Utils/Repository/OmekaDotOrgRepository.php index 2b44f02..7f780d3 100644 --- a/src/Command/PluginCommands/Utils/Repository/OmekaDotOrgRepository.php +++ b/src/Command/PluginCommands/Utils/Repository/OmekaDotOrgRepository.php @@ -43,7 +43,7 @@ public function find($pluginName) public function download($plugin, $destDir) { - $pluginName = $plugin['displayName']; + $pluginName = $plugin['name']; $plugin = $this->findPlugin($pluginName); if (!$plugin) {