mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-05-25 10:48:41 +00:00
fix tar source path
This commit is contained in:
parent
d708546c27
commit
6e6ce55bb8
|
|
@ -47,7 +47,7 @@ class Tar implements ArchiveInterface
|
||||||
$source = $relative;
|
$source = $relative;
|
||||||
$relative = '';
|
$relative = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$source = \realpath($source);
|
$source = \realpath($source);
|
||||||
|
|
||||||
if ($source === false) {
|
if ($source === false) {
|
||||||
|
|
@ -102,7 +102,7 @@ class Tar implements ArchiveInterface
|
||||||
|
|
||||||
$destination = \str_replace('\\', '/', $destination);
|
$destination = \str_replace('\\', '/', $destination);
|
||||||
$destination = \rtrim($destination, '/');
|
$destination = \rtrim($destination, '/');
|
||||||
$tar = new \PharData($destination);
|
$tar = new \PharData($source);
|
||||||
|
|
||||||
$tar->extractTo($destination . '/');
|
$tar->extractTo($destination . '/');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user