Pad arguments for commands

FossilOrigin-Name: 852e3a48c314a7a6eb6e5c9894e439a4be10e4fc09164981c7ba27fededc84eb
This commit is contained in:
Jonathan Schleifer 2025-03-08 13:12:32 +00:00
parent a06c4638a3
commit f0b20e15d8
2 changed files with 56 additions and 13 deletions

View file

@ -345,12 +345,14 @@ bool
execfile(OFString *cfgfile)
{
@autoreleasepool {
OFString *command;
@try {
execute([OFString stringWithContentsOfFile:cfgfile]);
command = [OFString stringWithContentsOfFile:cfgfile];
} @catch (id e) {
return false;
}
execute(command);
return true;
}
}