1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +01:00

Update brew list to use runAsUser instead of directly sudoing

This commit is contained in:
Adam Lavin
2016-11-23 21:52:56 +00:00
parent 6aa1f4b7bf
commit b2878a6d1a
2 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ function __construct(CommandLine $cli, Filesystem $files)
*/
function installed($formula)
{
return in_array($formula, explode(PHP_EOL, $this->cli->run('sudo -u '.user().' brew list | grep '.$formula)));
return in_array($formula, explode(PHP_EOL, $this->cli->runAsUser('brew list | grep '.$formula)));
}
/**