There is no need in DIRECTORY_SEPARATOR since it Unix
parent
3811fe7d8b
commit
a287884619
|
@ -39,7 +39,7 @@ class GzipDownloader extends ArchiveDownloader
|
||||||
|
|
||||||
// Try to use gunzip on *nix
|
// Try to use gunzip on *nix
|
||||||
if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
|
if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
|
||||||
$targetDirectory = $path . DIRECTORY_SEPARATOR . basename($file);
|
$targetDirectory = $path . '/' . basename($file);
|
||||||
$command = 'gzip -d < ' . escapeshellarg($file) . ' > ' . escapeshellarg($targetDirectory);
|
$command = 'gzip -d < ' . escapeshellarg($file) . ' > ' . escapeshellarg($targetDirectory);
|
||||||
|
|
||||||
if (0 === $this->process->execute($command, $ignoredOutput)) {
|
if (0 === $this->process->execute($command, $ignoredOutput)) {
|
||||||
|
|
Loading…
Reference in New Issue