From f5e386220d2c1526539d9a4b4977e95b5232cb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=BA?= Date: Mon, 12 Mar 2018 18:12:08 +0800 Subject: [PATCH] use `sh` as SHELL for `Cygwin/Git-Bash` --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6f5c076..86e45d3 100644 --- a/index.js +++ b/index.js @@ -280,7 +280,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) { if (customShell) { sh = customShell - } else if (process.platform === 'win32') { + } else if (opts.isWindowsShell == null ? process.platform === 'win32' : opts.isWindowsShell) { sh = process.env.comspec || 'cmd' shFlag = '/d /s /c' conf.windowsVerbatimArguments = true