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 b0c0bf3 commit 3c9ba19Copy full SHA for 3c9ba19
src/Command.php
@@ -149,7 +149,11 @@ public function setCommand($command)
149
if ($this->getIsWindows()) {
150
// Make sure to switch to correct drive like "E:" first if we have a full path in command
151
$chdrive = (isset($command[1]) && $command[1]===':') ? $command[0].': && ' : '';
152
- $command = sprintf($chdrive.'cd %s && %s', escapeshellarg(dirname($command)), basename($command));
+
153
+ // Absolute path. If it's a relative path, let it slide.
154
+ if ($chdrive) {
155
+ $command = sprintf($chdrive.'cd %s && %s', escapeshellarg(dirname($command)), basename($command));
156
+ }
157
}
158
$this->_command = $command;
159
return $this;
0 commit comments