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

Commit f5e3862

Browse files
committed
use sh as SHELL for Cygwin/Git-Bash
1 parent d030653 commit f5e3862

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
@@ -280,7 +280,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) {
280280

281281
if (customShell) {
282282
sh = customShell
283-
} else if (process.platform === 'win32') {
283+
} else if (opts.isWindowsShell == null ? process.platform === 'win32' : opts.isWindowsShell) {
284284
sh = process.env.comspec || 'cmd'
285285
shFlag = '/d /s /c'
286286
conf.windowsVerbatimArguments = true

0 commit comments

Comments
 (0)