1
0
Fork 0

Merge pull request #2246 from drrcknlsn/zip-perms-fix

fixes #2242: Set write permissions on unzipped package contents
pull/2254/head
Jordi Boggiano 2013-09-10 01:28:49 -07:00
commit 20a18dcb60
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class ZipDownloader extends ArchiveDownloader
// try to use unzip on *nix
if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
$command = 'unzip '.escapeshellarg($file).' -d '.escapeshellarg($path);
$command = 'unzip '.escapeshellarg($file).' -d '.escapeshellarg($path) . ' && chmod -R u+w ' . escapeshellarg($path);
if (0 === $this->process->execute($command, $ignoredOutput)) {
return;
}