1
0
Fork 0

Avoid chmod on windows

pull/4964/head
Jordi Boggiano 2016-02-25 15:36:31 +00:00
parent 250862b325
commit a63f8d511e
1 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,11 @@ class ZipDownloader extends ArchiveDownloader
$processError = null;
if (self::$hasSystemUnzip) {
$command = 'unzip '.ProcessExecutor::escape($file).' -d '.ProcessExecutor::escape($path) . ' && chmod -R u+w ' . ProcessExecutor::escape($path);
$command = 'unzip '.ProcessExecutor::escape($file).' -d '.ProcessExecutor::escape($path);
if (!Platform::isWindows()) {
$command .= ' && chmod -R u+w ' . ProcessExecutor::escape($path);
}
try {
if (0 === $this->process->execute($command, $ignoredOutput)) {
return;