projects
/
pharext
/
pharext
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (from parent 1:
2aa7504
)
fix warning
author
Michael Wallner
<mike@php.net>
Wed, 4 Mar 2015 19:10:02 +0000
(20:10 +0100)
committer
Michael Wallner
<mike@php.net>
Wed, 4 Mar 2015 19:10:02 +0000
(20:10 +0100)
src/pharext/Installer.php
patch
|
blob
|
history
diff --git
a/src/pharext/Installer.php
b/src/pharext/Installer.php
index 0e7cce461abeedb3e1d7c7b8acd1f0a390bf0ef1..ccbc385213cf2300a7d7e13e46defb0b98d8c28f 100644
(file)
--- 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)) {
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;
$retval = proc_close($proc);
} else {
$retval = -1;