Skip to content

Commit 62265a2

Browse files
Kelly Seldenkellyselden
authored andcommitted
run improvements
1 parent f44b585 commit 62265a2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/run.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ const { promisify } = require('util');
44
const exec = promisify(require('child_process').exec);
55
const debug = require('./debug');
66

7-
module.exports = async function run(command, options) {
8-
debug(command);
9-
let { stdout } = await exec(command, options);
10-
debug(stdout);
7+
module.exports = async function run() {
8+
debug(...arguments);
9+
10+
let { stdout } = await exec(...arguments);
11+
12+
if (stdout) {
13+
debug(stdout);
14+
}
15+
1116
return stdout;
1217
};

0 commit comments

Comments
 (0)