Refine install process some more

This commit is contained in:
DariusIII
2017-04-26 10:41:51 +02:00
parent 1492bebc71
commit 62eb14c096
2 changed files with 33 additions and 8 deletions
+5 -2
View File
@@ -228,8 +228,11 @@ if (!$error) {
}
if (!file_exists($unrar_path)) {
ColorCLI::doEcho(ColorCLI::primary('Creating missing' . $unrar_path . ' folder'));
mkdir($unrar_path);
ColorCLI::doEcho(ColorCLI::primary('Creating missing ' . $unrar_path . ' folder'));
if (!@mkdir($unrar_path) && !is_dir($unrar_path)) {
throw new RuntimeException('Unable to create ' . $unrar_path . ' folder');
}
ColorCLI::doEcho(ColorCLI::primary('Folder ' . $unrar_path . ' successfully created'));
}
$unrarPathCheck = is_writable($unrar_path);
if ($unrarPathCheck === false) {