mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Fixed the display date for the current version (#6474)
* webui: Fixed the display date for the current version * changed to use exec * changed >> to >
This commit is contained in:
committed by
Tony Murray
parent
720177965b
commit
056ddbac05
@ -1643,7 +1643,8 @@ function set_numeric($value, $default = 0)
|
||||
|
||||
function check_git_exists()
|
||||
{
|
||||
if (`which git`) {
|
||||
exec('git > /dev/null 2>&1', $response, $exit_code);
|
||||
if ($exit_code === 1) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user