Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions system/ComposerScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ public static function postUpdate()
private static function recursiveDelete(string $directory): void
{
if (! is_dir($directory)) {
Comment thread
kenjis marked this conversation as resolved.
echo sprintf('Cannot recursively delete "%s" as it does not exist.', $directory);
echo sprintf('Cannot recursively delete "%s" as it does not exist.', $directory) . PHP_EOL;

return;
}

/** @var SplFileInfo $file */
Expand Down Expand Up @@ -126,7 +128,11 @@ private static function recursiveMirror(string $originDir, string $targetDir): v
exit(1);
}

@mkdir($targetDir, 0755, true);
if (! @mkdir($targetDir, 0755, true)) {
echo sprintf('Cannot create the target directory: "%s"' . PHP_EOL, $targetDir);
Comment thread
LeMyst marked this conversation as resolved.
Outdated

exit(1);
}

$dirLen = strlen($originDir);

Expand Down