Fixed 'cd' command for windows
This commit is contained in:
parent
e3ff9d405a
commit
d0f6d295a1
6 changed files with 28 additions and 5 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue