We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a57ca commit ff2cf46Copy full SHA for ff2cf46
src/Command.php
@@ -142,7 +142,13 @@ public function setOptions($options)
142
*/
143
public function setCommand($command)
144
{
145
- $this->_command = $this->escapeCommand ? escapeshellcmd($command) : $command;
+ if ($this->escapeCommand) {
146
+ $command = escapeshellcmd($command);
147
+ }
148
+ if ($this->getIsWindows()) {
149
+ $command = sprintf('cd %s && %s', escapeshellarg(dirname($command)), basename($command));
150
151
+ $this->_command = $command;
152
return $this;
153
}
154
0 commit comments