Pad arguments for commands
FossilOrigin-Name: 852e3a48c314a7a6eb6e5c9894e439a4be10e4fc09164981c7ba27fededc84eb
This commit is contained in:
parent
a06c4638a3
commit
f0b20e15d8
2 changed files with 56 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue