fix crashing on mac os due to invalid stderror handle

This commit is contained in:
EinTim23 2025-05-10 12:00:09 +02:00
parent c53f02b35c
commit cd5656de63
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ NSString *executeCommand(NSString *command, NSArray *arguments) {
NSPipe *pipe = [NSPipe pipe];
task.standardOutput = pipe;
task.standardError = [NSPipe pipe];
[task launch];
NSData *data = [[pipe fileHandleForReading] readDataToEndOfFile];