Use the async shell exec
This commit is contained in:
@@ -33,9 +33,6 @@ function exec(tag, cmd, options, callback) {
|
||||
const stdoutResult = stdout ? stdout.toString('utf8') : null;
|
||||
const stderrResult = stderr ? stderr.toString('utf8') : null;
|
||||
|
||||
debug(`${tag} (stdout): %s`, stdoutResult);
|
||||
debug(`${tag} (stderr): %s`, stderrResult);
|
||||
|
||||
if (error) error.stdout = stdoutResult; // when promisified, this is the way to get stdout
|
||||
if (error) error.stderr = stderrResult; // when promisified, this is the way to get stderr
|
||||
|
||||
|
||||
Reference in New Issue
Block a user