fix kernel update
This commit is contained in:
parent
57d2f20255
commit
1cf2dc3d86
@ -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",
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user