Fixed 'cd' command for windows

This commit is contained in:
Dmitry Khomutov 2014-03-13 00:37:57 +07:00
commit d0f6d295a1
6 changed files with 28 additions and 5 deletions

View file

@ -127,7 +127,7 @@ class CommandExecutor
}
// Use "where" for windows and "which" for other OS
$findCmd = (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') ? 'which' : 'where';
$findCmd = IS_WIN ? 'which' : 'where';
$findCmdResult = trim(shell_exec($findCmd . ' ' . $bin));
if (!empty($findCmdResult)) {