fix(vikon): sync from extracted subdirectory inside ZIP
This commit is contained in:
@@ -58,7 +58,9 @@ class UpdateCoreAction
|
|||||||
|
|
||||||
File::delete($zipFile);
|
File::delete($zipFile);
|
||||||
|
|
||||||
$this->syncFiles($tempPath, $modulePath);
|
$extractedDirs = File::directories($tempPath);
|
||||||
|
$syncSource = $extractedDirs[0] ?? $tempPath;
|
||||||
|
$this->syncFiles($syncSource, $modulePath);
|
||||||
File::put($modulePath . '/.vikon', date('Y-m-d H:i:s'));
|
File::put($modulePath . '/.vikon', date('Y-m-d H:i:s'));
|
||||||
File::deleteDirectory($tempPath);
|
File::deleteDirectory($tempPath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user