fix crashing on mac os due to invalid stderror handle
This commit is contained in:
parent
c53f02b35c
commit
cd5656de63
|
@ -30,6 +30,7 @@ NSString *executeCommand(NSString *command, NSArray *arguments) {
|
||||||
|
|
||||||
NSPipe *pipe = [NSPipe pipe];
|
NSPipe *pipe = [NSPipe pipe];
|
||||||
task.standardOutput = pipe;
|
task.standardOutput = pipe;
|
||||||
|
task.standardError = [NSPipe pipe];
|
||||||
[task launch];
|
[task launch];
|
||||||
|
|
||||||
NSData *data = [[pipe fileHandleForReading] readDataToEndOfFile];
|
NSData *data = [[pipe fileHandleForReading] readDataToEndOfFile];
|
||||||
|
|
Loading…
Reference in New Issue