fix kernel update
This commit is contained in:
@ -74,9 +74,7 @@ class KernelService
|
||||
$this->files->copyKernelFolder($tmpKernelDirFull . 'kernel' , ROOT_DIR . "/kernel");
|
||||
|
||||
foreach ($files as $file) {
|
||||
Debug::prn($file);
|
||||
if ($file === 'bootstrap.php') {
|
||||
Debug::prn(123);
|
||||
$this->files->recursiveRemoveDir(ROOT_DIR . '/bootstrap');
|
||||
$this->files->copyKernelFolder($tmpKernelDirFull . 'bootstrap' , ROOT_DIR . '/bootstrap');
|
||||
}
|
||||
@ -91,7 +89,6 @@ class KernelService
|
||||
|
||||
$this->files->recursiveRemoveDir($tmpKernelDirFull);
|
||||
unlink(ROOT_DIR . $path);
|
||||
Debug::dd("update kernel success");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user