Remove an extra round bracket.

This commit is contained in:
markjcrane
2015-12-12 10:34:52 -07:00
parent e40365e338
commit 583498febb

View File

@@ -88,7 +88,7 @@ $document['title'] = $text['title-sys-status'];
$git_path = normalize_path_to_os($_SERVER["DOCUMENT_ROOT"]."/.git");
if(file_exists($git_path)){
$git_exe = 'git';
if (strtoupper(substr(PHP_OS, 0, 3)) === 'SUN') { $git_exe = shell_exec('which git')); }
if (strtoupper(substr(PHP_OS, 0, 3)) === 'SUN') { $git_exe = shell_exec('which git'); }
$git_branch = shell_exec($git_exe.' --git-dir='.$git_path.' name-rev --name-only HEAD');
rtrim($git_branch);
$git_commit = shell_exec($git_exe.' --git-dir='.$git_path.' rev-parse HEAD');