-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run-script: Do not use SET to fetch the env in git-bash or cygwin
Credit: @gucong3000 PR-URL: npm/npm#19418 Reviewed-By: @iarna
- Loading branch information
1 parent
7984206
commit 4c32413
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use strict' | ||
var isWindows = require('./is-windows.js') | ||
module.exports = isWindows && /^MINGW(32|64)$/.test(process.env.MSYSTEM) | ||
module.exports = isWindows && | ||
(/^MINGW(32|64)$/.test(process.env.MSYSTEM) || process.env.TERM === "cygwin") |