minor: prevent warning when installing cmake with Homebrew

This commit is contained in:
Kévin Dunglas 2023-08-20 14:23:29 +02:00 committed by Jerry Ma
parent a00f8945ba
commit cf22949f3b

View File

@ -73,7 +73,7 @@ class MacOSToolCheckList
{ {
foreach ($missing as $cmd) { foreach ($missing as $cmd) {
try { try {
shell(true)->exec('brew install ' . escapeshellarg($cmd)); shell(true)->exec('brew install --formula ' . escapeshellarg($cmd));
} catch (RuntimeException) { } catch (RuntimeException) {
return false; return false;
} }