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

Commit

Permalink
use sh as SHELL for Cygwin/Git-Bash
Browse files Browse the repository at this point in the history
  • Loading branch information
gucong3000 committed Mar 12, 2018
1 parent 5c70e52 commit 8eefa2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8eefa2c

Please sign in to comment.