Skip to content

Commit

Permalink
Merge pull request shopwareLabs#149 from shopwareLabs/fix-output
Browse files Browse the repository at this point in the history
Fix invalid output directory creation, fixes shopwareLabs#141
  • Loading branch information
mitelg authored Nov 16, 2018
2 parents 32be438 + 024f128 commit c2e623f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Extensions/Shopware/DataGenerator/Struct/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ public function getCreateImages()

public function createOutputDir()
{
if (!is_dir('output') && !mkdir('output') && !is_dir('output')) {
$outputDir = getcwd() . '/output';
if (!is_dir($outputDir) && !mkdir($outputDir) && !is_dir($outputDir)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', 'output'));
}
}
Expand Down

0 comments on commit c2e623f

Please sign in to comment.