init: Allow empty lines in service files
This commit is contained in:
parent
dcc6bbf055
commit
c075aa77b9
@ -100,9 +100,12 @@ static Result<void> load_service(StringView path)
|
||||
|
||||
while (true)
|
||||
{
|
||||
auto line = TRY(file->read_line(false));
|
||||
auto line = TRY(file->read_line());
|
||||
if (line.is_empty()) break;
|
||||
|
||||
line.trim("\n");
|
||||
if (line.is_empty()) continue;
|
||||
|
||||
auto parts = TRY(line.split_once('='));
|
||||
if (parts.size() < 2 || parts[0].is_empty() || parts[1].is_empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user