From 8b48cf7f70cda84ddcdee18cde4707914f03f32a Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Mon, 17 Jul 2023 20:28:08 +0800 Subject: [PATCH] add linux tool check --- src/SPC/doctor/item/LinuxToolCheckList.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SPC/doctor/item/LinuxToolCheckList.php b/src/SPC/doctor/item/LinuxToolCheckList.php index 6d69bd6e..d5db242e 100644 --- a/src/SPC/doctor/item/LinuxToolCheckList.php +++ b/src/SPC/doctor/item/LinuxToolCheckList.php @@ -21,18 +21,18 @@ class LinuxToolCheckList $distro = SystemUtil::getOSRelease(); $required = match ($distro['dist']) { - 'ubuntu', 'debian' => [ - 'make', 'bison', 'flex', - 'git', 'autoconf', 'automake', - 'tar', 'unzip', 'gzip', - 'bzip2', 'cmake', - ], 'alpine' => [ 'make', 'bison', 'flex', 'git', 'autoconf', 'automake', 'tar', 'unzip', 'gzip', 'bzip2', 'cmake', 'gcc', - ] + ], + default => [ + 'make', 'bison', 'flex', + 'git', 'autoconf', 'automake', + 'tar', 'unzip', 'gzip', + 'bzip2', 'cmake', + ], }; $missing = []; foreach ($required as $cmd) {