mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Refine install process some more
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user