mirror of https://github.com/MISP/MISP
fix: [feed] shell_exec don't throw Exception
parent
0396cc5cb3
commit
0ddfbc9ccf
|
@ -514,11 +514,8 @@ class Feed extends AppModel
|
|||
{
|
||||
$version = $this->checkMISPVersion();
|
||||
$version = implode('.', $version);
|
||||
try {
|
||||
$commit = trim(shell_exec('git log --pretty="%H" -n1 HEAD'));
|
||||
} catch (Exception $e) {
|
||||
$commit = false;
|
||||
}
|
||||
$commit = trim(shell_exec('git log --pretty="%H" -n1 HEAD'));
|
||||
|
||||
$result = array(
|
||||
'header' => array(
|
||||
'Accept' => 'application/json',
|
||||
|
|
Loading…
Reference in New Issue