From 8eefa2c74a265cb0ed90eee936f7b684124e093f 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 ad3152b..859f75e 100644 --- a/index.js +++ b/index.js @@ -262,7 +262,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) { if (customShell) { sh = customShell - } else if (process.platform === 'win32') { + } else if (process.platform === 'win32' && !/^(msys|cygwin)$/.test(process.env.OSTYPE)) { sh = process.env.comspec || 'cmd' shFlag = '/d /s /c' conf.windowsVerbatimArguments = true