Skip to content

Commit 089eb76

Browse files
committed
debug
1 parent a5ad74b commit 089eb76

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

module/DeployAgent/src/Resource/Archive/Extractor/TarGzExtractor.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,16 @@ class TarGzExtractor implements ExtractorInterface
2929
*/
3030
public function extract(\SplFileInfo $archive, \SplFileInfo $destination)
3131
{
32-
if (preg_match('/^win/i', PHP_OS)) {
32+
//if (preg_match('/^win/i', PHP_OS)) {
3333
$targz = new \PharData($archive->getPathname());
3434
/** @var \PharData $tar */
3535
$tar = $targz->decompress();
3636
$tar->extractTo($destination->getPathname());
3737
unlink(str_replace('.tar.gz', '.tar', $archive->getPathname()));
38-
} else {
38+
/*} else {
3939
exec('tar xzf ' . $archive->getPathname() . ' -C ' . $destination->getPathname());
40-
41-
var_dump('tar xzf ' . $archive->getPathname() . ' -C ' . $destination->getPathname());
42-
var_dump(glob($destination->getPathname() . '/*'));
43-
4440
unlink($archive->getPathname());
45-
}
41+
}*/
4642

4743
return true;
4844
}

0 commit comments

Comments
 (0)