This commit is contained in:
Dennis Eichhorn 2018-10-20 18:40:57 +02:00
parent 823f161451
commit d708546c27

View File

@ -56,12 +56,12 @@ class TarGz implements ArchiveInterface
return false; return false;
} }
if (!Gz::unpack($source, $destination . File::name($source) . '.tmp')) { if (!Gz::unpack($source, $destination . '/' . File::name($source) . '.tmp')) {
return false; return false;
} }
$unpacked = Tar::unpack($destination . File::name($source) . '.tmp', $destination); $unpacked = Tar::unpack($destination . '/' . File::name($source) . '.tmp', $destination);
\unlink($destination . File::name($source) . '.tmp'); \unlink($destination . '/' . File::name($source) . '.tmp');
return $unpacked; return $unpacked;
} }