Oops, check if its set or not lol

This commit is contained in:
Christopher Cookman 2024-08-21 07:17:19 -06:00
parent 6023bc9cf9
commit 4215a6a7c3
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

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