Skip to content

Commit 16aaeae

Browse files
author
BELADEL ILYES ABDELRAZAK
committed
Fix getExecCommand() to get the latest command set instead only the first one passed.
1 parent fe86ec8 commit 16aaeae

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Command.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ public function getCommand()
232232
*/
233233
public function getExecCommand()
234234
{
235-
if ($this->_execCommand===null) {
236-
$command = $this->getCommand();
237-
if (!$command) {
238-
$this->_error = 'Could not locate any executable command';
239-
return false;
240-
}
241-
$args = $this->getArgs();
242-
$this->_execCommand = $args ? $command.' '.$args : $command;
235+
$command = $this->getCommand();
236+
if (!$command) {
237+
$this->_error = 'Could not locate any executable command';
238+
return false;
243239
}
240+
241+
$args = $this->getArgs();
242+
$this->_execCommand = $args ? $command.' '.$args : $command;
243+
244244
return $this->_execCommand;
245245
}
246246

0 commit comments

Comments
 (0)