@ -58,8 +58,10 @@ function runCommand(command, stdin) {
resolve(stdout);
}
});
child.stdin.write(stdin);
if (stdin) {
child.stdin.end();