Cleanup processes output handling
parent
034f1cf591
commit
f063d28a59
|
@ -44,7 +44,7 @@ class RarDownloader extends ArchiveDownloader
|
|||
|
||||
// Try to use unrar on *nix
|
||||
if (!Platform::isWindows()) {
|
||||
$command = 'unrar x ' . ProcessExecutor::escape($file) . ' ' . ProcessExecutor::escape($path) . ' && chmod -R u+w ' . ProcessExecutor::escape($path);
|
||||
$command = 'unrar x ' . ProcessExecutor::escape($file) . ' ' . ProcessExecutor::escape($path) . ' >/dev/null && chmod -R u+w ' . ProcessExecutor::escape($path);
|
||||
|
||||
if (0 === $this->process->execute($command, $ignoredOutput)) {
|
||||
return;
|
||||
|
|
|
@ -70,7 +70,7 @@ class ZipDownloader extends ArchiveDownloader
|
|||
$processError = null;
|
||||
|
||||
if (self::$hasSystemUnzip && !(class_exists('ZipArchive') && Platform::isWindows())) {
|
||||
$command = 'unzip '.ProcessExecutor::escape($file).' -d '.ProcessExecutor::escape($path);
|
||||
$command = 'unzip -qq '.ProcessExecutor::escape($file).' -d '.ProcessExecutor::escape($path);
|
||||
if (!Platform::isWindows()) {
|
||||
$command .= ' && chmod -R u+w ' . ProcessExecutor::escape($path);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue