fix kernel update

This commit is contained in:
Билай Станислав 2024-12-18 16:52:09 +03:00
parent 57d2f20255
commit 1cf2dc3d86
2 changed files with 1 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "Kernel", "name": "Kernel",
"version": "0.1", "version": "0.1.1",
"author": "ITGuild", "author": "ITGuild",
"slug": "kernel", "slug": "kernel",
"type": "kernel", "type": "kernel",

View File

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