Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 8eefa2c

Browse files
authored
use sh as SHELL for Cygwin/Git-Bash
1 parent 5c70e52 commit 8eefa2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) {
262262

263263
if (customShell) {
264264
sh = customShell
265-
} else if (process.platform === 'win32') {
265+
} else if (process.platform === 'win32' && !/^(msys|cygwin)$/.test(process.env.OSTYPE)) {
266266
sh = process.env.comspec || 'cmd'
267267
shFlag = '/d /s /c'
268268
conf.windowsVerbatimArguments = true

0 commit comments

Comments
 (0)