Skip to content

Commit 1bc32b7

Browse files
committed
Fix a bug where the right syntax wasn't being used to change drives on Windows.
1 parent aac2452 commit 1bc32b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function setCommand($command)
159159

160160
// Absolute path. If it's a relative path, let it slide.
161161
if ($position) {
162-
$command = sprintf($command[$position - 1].'cd %s && %s', escapeshellarg(dirname($command)), basename($command));
162+
$command = sprintf($command[$position - 1].':\;cd %s && %s', escapeshellarg(dirname($command)), basename($command));
163163
}
164164
}
165165
$this->_command = $command;

0 commit comments

Comments
 (0)