mirror of https://github.com/MISP/MISP
fix: [internal] Skip empty line
parent
9c60d64b04
commit
81b0a7eed7
|
@ -82,7 +82,7 @@ class GitTool
|
|||
$lines = ProcessTool::execute('git submodule status --cached', ROOT);
|
||||
$output = [];
|
||||
foreach (explode("\n", $lines) as $submodule) {
|
||||
if ($submodule[0] === '-') {
|
||||
if ($submodule === '' || $submodule[0] === '-') {
|
||||
continue;
|
||||
}
|
||||
$parts = explode(' ', $submodule);
|
||||
|
|
Loading…
Reference in New Issue