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