private static function check_bin($binPath = null) { if (!empty(self::$bin)) { return; } if (empty($binPath)) { $binPath = '/usr/bin/git'; if (\nzedb\utility\Utility::hasWhich()) { exec('which git', $output, $error); if (!$error) { $binPath = $output[0]; } } } self::set_bin($binPath); }