Skip to content

Commit

Permalink
MAGETWO-51598: bin/magento is installed without execute bit set
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohdan Korablov committed Oct 4, 2016
1 parent 6072a6d commit b903315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MagentoHackathon/Composer/Magento/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ public function onNewCodeEvent(\Composer\Script\Event $event)
private function setFilePermissions()
{
$packages = $this->composer->getRepositoryManager()->getLocalRepository()->getPackages();
$message = 'Check "chmod" section in composer.json of %s package.';

foreach ($packages as $package) {
$message = 'Check "chmod" section in composer.json of ' . $package->getName() . ' package.';
$extra = $package->getExtra();
if (!isset($extra['chmod']) || !is_array($extra['chmod'])) {
continue;
Expand All @@ -189,15 +189,15 @@ private function setFilePermissions()
} else {
$this->io->writeError([
'File doesn\'t exist: ' . $chmod['path'],
$message
sprintf($message, $package->getName())
]);
}
}

if ($error) {
$this->io->writeError([
'Incorrect mask or file path.',
$message
sprintf($message, $package->getName())
]);
}
}
Expand Down

0 comments on commit b903315

Please sign in to comment.