Merge pull request #5569 from nicolas-grekas/clean-proc-output
Cleanup processes output handlingpull/5645/head
commit
4861b74d3d
|
@ -44,7 +44,7 @@ class RarDownloader extends ArchiveDownloader
|
||||||
|
|
||||||
// Try to use unrar on *nix
|
// Try to use unrar on *nix
|
||||||
if (!Platform::isWindows()) {
|
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)) {
|
if (0 === $this->process->execute($command, $ignoredOutput)) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -70,7 +70,7 @@ class ZipDownloader extends ArchiveDownloader
|
||||||
$processError = null;
|
$processError = null;
|
||||||
|
|
||||||
if (self::$hasSystemUnzip && !(class_exists('ZipArchive') && Platform::isWindows())) {
|
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()) {
|
if (!Platform::isWindows()) {
|
||||||
$command .= ' && chmod -R u+w ' . ProcessExecutor::escape($path);
|
$command .= ' && chmod -R u+w ' . ProcessExecutor::escape($path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue