Remove perl.exe check log in doctor

This commit is contained in:
crazywhalecc 2024-07-08 10:51:09 +08:00 committed by Jerry Ma
parent 4432a177a7
commit 1c670f433b

View File

@ -71,7 +71,7 @@ class WindowsToolCheckList
if (($path = SystemUtil::findCommand('perl.exe')) === null) {
return CheckResult::fail('perl not found in path.', 'install-perl');
}
if (!str_contains(implode('', cmd()->execWithResult(quote($path) . ' -v')[1]), 'MSWin32')) {
if (!str_contains(implode('', cmd()->execWithResult(quote($path) . ' -v', false)[1]), 'MSWin32')) {
return CheckResult::fail($path . ' is not built for msvc.', 'install-perl');
}
return CheckResult::ok();