Skip to content

Commit 45ae1fd

Browse files
committed
debug
1 parent 089eb76 commit 45ae1fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +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());
4040
unlink($archive->getPathname());
41-
}*/
41+
}
4242

4343
return true;
4444
}

0 commit comments

Comments
 (0)