Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e77b1 commit c70a226Copy full SHA for c70a226
src/Symfony/Component/Finder/Shell/Shell.php
@@ -55,14 +55,14 @@ public function testCommand($command)
55
}
56
57
// todo: find a better way (command could not be available)
58
- $testCommand = 'command -v ';
+ $testCommand = 'which ';
59
if (self::TYPE_WINDOWS === $this->type) {
60
$testCommand = 'where ';
61
62
63
$command = escapeshellcmd($command);
64
65
- exec($testCommand . $command, $output, $code);
+ exec($testCommand.$command, $output, $code);
66
67
return 0 === $code && count($output) > 0;
68
0 commit comments