X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FInstaller.php;h=ccbc385213cf2300a7d7e13e46defb0b98d8c28f;hb=7c5473b7e08ec0297c94c88248b85c2e1793ad42;hp=0e7cce461abeedb3e1d7c7b8acd1f0a390bf0ef1;hpb=2aa7504c19c62245a3cfaebb12beffde40d1cf57;p=pharext%2Fpharext diff --git a/src/pharext/Installer.php b/src/pharext/Installer.php index 0e7cce4..ccbc385 100644 --- a/src/pharext/Installer.php +++ b/src/pharext/Installer.php @@ -120,7 +120,7 @@ class Installer implements Command private function exec($name, $command, $sudo = false) { $this->info("Running %s ...%s", $this->args->verbose ? $command : $name, $this->args->verbose ? "\n" : " "); if ($sudo && isset($this->args->sudo)) { - if ($proc = proc_open(sprintf($this->args->sudo, $command)." 2>&1", [STDIN,STDOUT,STDERR], $pipes)) { + if (($proc = proc_open(sprintf($this->args->sudo, $command)." 2>&1", [STDIN,STDOUT,STDERR], $pipes))) { $retval = proc_close($proc); } else { $retval = -1;