Skip to content

Commit

Permalink
Improve swissup:module command
Browse files Browse the repository at this point in the history
  • Loading branch information
0m3r committed Feb 12, 2020
1 parent 8348268 commit e7cd0ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Console/Command/ModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
$packages = array_keys($codes);
if (in_array('Swissup_' . $moduleCode, $codes)) {
$moduleCode = 'Swissup_' . $moduleCode;
} elseif (in_array('Swissup_' . ucfirst($moduleCode), $codes)) {
$moduleCode = 'Swissup_' . ucfirst($moduleCode);
} elseif (in_array('swissup/' . $moduleCode, $packages)) {
$moduleCode = 'swissup/' . $moduleCode;
} elseif (in_array('swissup/module-' . $moduleCode, $packages)) {
$moduleCode = 'swissup/module-' . $moduleCode;
}

if (in_array($moduleCode, $packages)) {
Expand Down

0 comments on commit e7cd0ba

Please sign in to comment.