Skip to content

Commit 83414b6

Browse files
committed
Update Installer.php
call mkdir recursive, so it does not fail without parent directories. Fixes #114
1 parent 87ae0dd commit 83414b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MagentoHackathon/Composer/Magento/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public function prepareMagentoCore() {
503503
protected function setMagentoPermissions() {
504504
foreach ($this->_magentoWritableDirs as $dir) {
505505
if (!file_exists($this->getTargetDir() . DIRECTORY_SEPARATOR . $dir)) {
506-
mkdir($this->getTargetDir() . DIRECTORY_SEPARATOR . $dir);
506+
mkdir($this->getTargetDir() . DIRECTORY_SEPARATOR . $dir, 0777, true);
507507
}
508508
$this->setPermissions($this->getTargetDir() . DIRECTORY_SEPARATOR . $dir, 0777, 0666);
509509
}

0 commit comments

Comments
 (0)