mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Addressing issue #678
This commit is contained in:
committed by
Matt Stauffer
parent
8f03204b61
commit
b05c773e1d
@@ -130,7 +130,7 @@ function tap($formulas)
|
||||
$formulas = is_array($formulas) ? $formulas : func_get_args();
|
||||
|
||||
foreach ($formulas as $formula) {
|
||||
$this->cli->passthru('sudo -u '.user().' brew tap '.$formula);
|
||||
$this->cli->passthru('sudo -u "'.user().'" brew tap '.$formula);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ function quietly($command)
|
||||
*/
|
||||
function quietlyAsUser($command)
|
||||
{
|
||||
$this->quietly('sudo -u '.user().' '.$command.' > /dev/null 2>&1');
|
||||
$this->quietly('sudo -u "'.user().'" '.$command.' > /dev/null 2>&1');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,7 +60,7 @@ function run($command, callable $onError = null)
|
||||
*/
|
||||
function runAsUser($command, callable $onError = null)
|
||||
{
|
||||
return $this->runCommand('sudo -u '.user().' '.$command, $onError);
|
||||
return $this->runCommand('sudo -u "'.user().'" '.$command, $onError);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user