Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jenskooij committed Oct 12, 2017
2 parents b91050c + 64430e5 commit 6fb96f7
Show file tree
Hide file tree
Showing 52 changed files with 1,030 additions and 431 deletions.
4 changes: 3 additions & 1 deletion src/CloudControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ private static function createDir(Event $event, $rootDir, $dirName)
{
$dir = $rootDir . DIRECTORY_SEPARATOR . $dirName . DIRECTORY_SEPARATOR;
if (!is_dir($dir)) {
mkdir($dir);
if (!mkdir($dir) && !is_dir($dir)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
}
$event->getIO()->write("[INSTALL] Created dir: " . $dir);
} else {
$event->getIO()->write("[INFO] Dir already exists: " . $dir);
Expand Down
Loading

0 comments on commit 6fb96f7

Please sign in to comment.