Fix if 'git' instead of 'git.exe' as command is used on windows (#168)
This commit is contained in:
parent
d840a7f50b
commit
bf118c40df
12
RoboFile.php
12
RoboFile.php
|
@ -66,9 +66,17 @@ class RoboFile extends \Robo\Tasks
|
|||
{
|
||||
if ($this->isWindows())
|
||||
{
|
||||
return '.exe';
|
||||
// check wehter git.exe or git as command should be used,
|
||||
// as on window both is possible
|
||||
if(!$this->_exec('git.exe --version')->getMessage())
|
||||
{
|
||||
return '';
|
||||
}
|
||||
else
|
||||
{
|
||||
return '.exe';
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue