From c70a2261210ab6f2d17a6582842e9f22f6360f3b Mon Sep 17 00:00:00 2001 From: Gordon Franke Date: Thu, 7 Aug 2014 13:29:58 +0200 Subject: [PATCH] change command to which available under most unix systems agree i will change it which is available under suse, ubuntu, debian, fedora, bsd --- src/Symfony/Component/Finder/Shell/Shell.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Finder/Shell/Shell.php b/src/Symfony/Component/Finder/Shell/Shell.php index 7c57e7b7f9..d17f2fac35 100644 --- a/src/Symfony/Component/Finder/Shell/Shell.php +++ b/src/Symfony/Component/Finder/Shell/Shell.php @@ -55,14 +55,14 @@ class Shell } // todo: find a better way (command could not be available) - $testCommand = 'command -v '; + $testCommand = 'which '; if (self::TYPE_WINDOWS === $this->type) { $testCommand = 'where '; } $command = escapeshellcmd($command); - exec($testCommand . $command, $output, $code); + exec($testCommand.$command, $output, $code); return 0 === $code && count($output) > 0; }