From e32968cfcea295f21336c1cda0bbe8d7a107b1eb Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 19 Nov 2014 17:04:55 +0100 Subject: [PATCH] Remove exec() call with invalid name on windows Currently running unit tests prints the following message 3 times: The command "command" is misspelt or could not be found. Instead of trying this, we just skip this now. --- settings/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/admin.php b/settings/admin.php index d1ed6e75f50..2b964613096 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -123,7 +123,7 @@ $template->printPage(); * @return null|string */ function findBinaryPath($program) { - if (OC_Helper::is_function_enabled('exec')) { + if (!\OC_Util::runningOnWindows() && \OC_Helper::is_function_enabled('exec')) { exec('command -v ' . escapeshellarg($program) . ' 2> /dev/null', $output, $returnCode); if ($returnCode === 0 && count($output) > 0) { return escapeshellcmd($output[0]); -- 2.39.5