示例#1
0
文件: Git.php 项目: Jay204/nZEDb
 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);
 }