From 4215a6a7c39c7e1eead3c7b6b2d47dff6d1b2ef2 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 21 Aug 2024 07:17:19 -0600 Subject: [PATCH] Oops, check if its set or not lol --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b797cd4..d08455f 100644 --- a/index.js +++ b/index.js @@ -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(); + } }); }