change names
parent
0ba05afa66
commit
d098ac1832
|
@ -46,9 +46,9 @@ export default class Util {
|
|||
cmd.stderr.on('data', writeFunction);
|
||||
cmd.on('error', writeFunction);
|
||||
cmd.once('close', (code, signal) => {
|
||||
cmd.stdout.removeListener('data', writeFunction);
|
||||
cmd.stderr.removeListener('data', writeFunction);
|
||||
cmd.removeListener('error', writeFunction);
|
||||
cmd.stdout.off('data', writeFunction);
|
||||
cmd.stderr.off('data', writeFunction);
|
||||
cmd.off('error', writeFunction);
|
||||
if (error) rej(new Error(output));
|
||||
res(output);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue