From fece13a915f756c7b23a629f9f397473bad7547d Mon Sep 17 00:00:00 2001 From: "hirotaka.sakama" Date: Thu, 27 Jun 2024 15:04:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Node.js=2018.20.2,=2020.12.2=20=E4=BB=A5?= =?UTF-8?q?=E9=99=8D=E3=81=AE=E5=A0=B4=E5=90=88=E3=81=AB=20Windows=20?= =?UTF-8?q?=E7=92=B0=E5=A2=83=E3=81=A7=20run,=20start,=20stop=20=E3=82=B3?= =?UTF-8?q?=E3=83=9E=E3=83=B3=E3=83=89=E3=82=92=E5=AE=9F=E8=A1=8C=E3=81=97?= =?UTF-8?q?=E3=81=9F=E6=99=82=E3=81=AB=20spawn=20EINVAL=20=E3=82=A8?= =?UTF-8?q?=E3=83=A9=E3=83=BC=E3=81=8C=E5=87=BA=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=81=A7=20spawn=20=E3=81=AE=20options=20=E3=81=AB=20shell:=20?= =?UTF-8?q?true=20=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/daab-run.js | 3 ++- lib/daab-start.js | 3 ++- lib/daab-stop.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/daab-run.js b/lib/daab-run.js index 8bdc3da..3f25bf4 100644 --- a/lib/daab-run.js +++ b/lib/daab-run.js @@ -17,5 +17,6 @@ if (! auth.hasToken()) { var cmd = process.platform === 'win32' ? 'bin\\hubot.cmd' : 'bin/hubot'; var hubot = spawn(cmd, ['run'].concat(process.argv.slice(2)), { - stdio: 'inherit' + stdio: 'inherit', + shell: true }); diff --git a/lib/daab-start.js b/lib/daab-start.js index 468d7d7..fb12a71 100644 --- a/lib/daab-start.js +++ b/lib/daab-start.js @@ -18,7 +18,8 @@ if (! auth.hasToken()) { var cmd = process.platform === 'win32' ? 'bin\\hubot.cmd' : 'bin/hubot'; var hubot = spawn(cmd, ['start'].concat(process.argv.slice(2)), { detached: true, - stdio: 'inherit' + stdio: 'inherit', + shell: true }); hubot.unref(); diff --git a/lib/daab-stop.js b/lib/daab-stop.js index 0a8f68c..9875f6f 100644 --- a/lib/daab-stop.js +++ b/lib/daab-stop.js @@ -10,5 +10,6 @@ program var cmd = process.platform === 'win32' ? 'bin\\hubot.cmd' : 'bin/hubot'; var hubot = spawn(cmd, ['stop'].concat(process.argv.slice(2)), { - stdio: 'inherit' + stdio: 'inherit', + shell: true });