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