Use the async shell exec

This commit is contained in:
Girish Ramakrishnan
2024-02-20 22:57:36 +01:00
parent 1128edc23e
commit b51071155a
3 changed files with 8 additions and 8 deletions
-3
View File
@@ -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