This commit is contained in:
2024-12-18 16:32:51 +03:00
parent 0d98ec7cde
commit bcf8b6621b
3 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,9 @@ class KernelService
$this->files->copyKernelFolder($tmpKernelDirFull . 'kernel' , ROOT_DIR . "/kernel");
foreach ($files as $file) {
Debug::prn($file);
if ($file === 'bootstrap') {
Debug::prn(123);
$this->files->recursiveRemoveDir(ROOT_DIR . '/bootstrap');
$this->files->copyKernelFolder($tmpKernelDirFull . 'bootstrap' , ROOT_DIR . '/bootstrap');
}
@ -83,6 +85,7 @@ class KernelService
$this->files->recursiveRemoveDir($tmpKernelDirFull);
unlink(ROOT_DIR . $path);
Debug::dd("update kernel success");
return true;
}