Fixes
This commit is contained in:
parent
37bdffbbdd
commit
2476086f7c
2 changed files with 5 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ class Builder implements LoggerAwareInterface
|
|||
$this->pluginExecutor = new Plugin\Util\Executor($pluginFactory, $this->buildLogger);
|
||||
|
||||
$executorClass = 'PHPCI\Helper\UnixCommandExecutor';
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
|
||||
if (IS_WIN) {
|
||||
$executorClass = 'PHPCI\Helper\WindowsCommandExecutor';
|
||||
}
|
||||
|
||||
|
|
|
|||
4
vars.php
4
vars.php
|
|
@ -25,3 +25,7 @@ if (!defined('ENABLE_SHELL_PLUGIN')) {
|
|||
if (!defined('PHPCI_IS_CONSOLE')) {
|
||||
define('PHPCI_IS_CONSOLE', false);
|
||||
}
|
||||
|
||||
if (!defined('IS_WIN')) {
|
||||
define('IS_WIN', ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? true : false));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue