diff --git a/src/SPC/builder/traits/UnixSystemUtilTrait.php b/src/SPC/builder/traits/UnixSystemUtilTrait.php index 3407a00b..a64c2d94 100644 --- a/src/SPC/builder/traits/UnixSystemUtilTrait.php +++ b/src/SPC/builder/traits/UnixSystemUtilTrait.php @@ -19,6 +19,9 @@ trait UnixSystemUtilTrait if (!$paths) { $paths = explode(PATH_SEPARATOR, getenv('PATH')); } + if (str_starts_with($name, '/')) { + return file_exists($name) ? $name : null; + } foreach ($paths as $path) { if (file_exists($path . DIRECTORY_SEPARATOR . $name)) { return $path . DIRECTORY_SEPARATOR . $name; diff --git a/src/SPC/doctor/item/LinuxToolCheckList.php b/src/SPC/doctor/item/LinuxToolCheckList.php index c07a32da..78a04b57 100644 --- a/src/SPC/doctor/item/LinuxToolCheckList.php +++ b/src/SPC/doctor/item/LinuxToolCheckList.php @@ -52,6 +52,7 @@ class LinuxToolCheckList 'base-devel' => 'automake', 'gettext-devel' => 'gettextize', 'gettext-dev' => 'gettextize', + 'perl-IPC-Cmd' => '/usr/share/doc/perl-IPC-Cmd' ]; /** @noinspection PhpUnused */