change command to which available under most unix systems
agree i will change it which is available under suse, ubuntu, debian, fedora, bsd
This commit is contained in:
parent
85e77b14f7
commit
c70a226121
@ -55,7 +55,7 @@ class Shell
|
|||||||
}
|
}
|
||||||
|
|
||||||
// todo: find a better way (command could not be available)
|
// todo: find a better way (command could not be available)
|
||||||
$testCommand = 'command -v ';
|
$testCommand = 'which ';
|
||||||
if (self::TYPE_WINDOWS === $this->type) {
|
if (self::TYPE_WINDOWS === $this->type) {
|
||||||
$testCommand = 'where ';
|
$testCommand = 'where ';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user