From c122d5e44a63bb62062c41f94d69ced808845e3a Mon Sep 17 00:00:00 2001 From: Fox Ears Date: Tue, 18 Aug 2020 12:07:09 +0900 Subject: [PATCH] Update class-setup.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows用にwhereコマンドに対応 --- src/_h5ai/private/php/core/class-setup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_h5ai/private/php/core/class-setup.php b/src/_h5ai/private/php/core/class-setup.php index d0c3fb2c..cbb85f85 100644 --- a/src/_h5ai/private/php/core/class-setup.php +++ b/src/_h5ai/private/php/core/class-setup.php @@ -122,12 +122,15 @@ class Setup { if (sizeof($cmds) === 0 || $this->refresh) { $cmds['command'] = Util::exec_0('command -v command'); $cmds['which'] = Util::exec_0('which which') || Util::exec_0('which which.exe'); + $cmds['where'] = Util::exec_0('where where.exe'); $cmd = false; if ($cmds['command']) { $cmd = 'command -v'; } elseif ($cmds['which']) { $cmd = 'which'; + } elseif ($cmds['where']) { + $cmd = 'where'; } foreach (['avconv', 'convert', 'du', 'ffmpeg', 'gm', 'tar', 'zip'] as $c) {