git-bash-shell
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -29,2 +29,3 @@ "use strict"; | ||
var readdir = promisify(fs.readdir); | ||
var unlink = promisify(fs.unlink); | ||
var mkdir = promisify(fs.mkdir); | ||
@@ -45,3 +46,3 @@ | ||
case 0: | ||
cmdPath = path.join(/[\\/]node_modules[\\/]/i.test(__dirname) ? "node_modules/.bin" : "bin", "git-bash-shell.cmd"); // return reg.add(`HK${isAdmin ? "LM" : "CU"}/Software/Microsoft/Command Processor`, { | ||
cmdPath = path.normalize("node_modules/.bin/git-bash-shell.cmd"); // return reg.add(`HK${isAdmin ? "LM" : "CU"}/Software/Microsoft/Command Processor`, { | ||
@@ -301,3 +302,3 @@ return _context.abrupt("return", reg.add("HKCU/Software/Microsoft/Command Processor", { | ||
_regenerator.default.mark(function _callee6() { | ||
var cmdFile, cmd, osArch; | ||
var cmdFile, cmd, osArch, binDir, sh; | ||
return _regenerator.default.wrap(function _callee6$(_context6) { | ||
@@ -319,2 +320,21 @@ while (1) { | ||
case 8: | ||
binDir = path.join(/^(.+?)[\\/]node_modules[\\/]/.test(__dirname) ? RegExp.$1 : process.cwd(), "node_modules/.bin"); | ||
sh = path.join(binDir, "git-bash-shell"); | ||
_context6.next = 12; | ||
return writeFile(sh + ".cmd", `@"%~dp0\\${path.relative(binDir, cmdFile)}" %*`); | ||
case 12: | ||
_context6.prev = 12; | ||
_context6.next = 15; | ||
return unlink(sh); | ||
case 15: | ||
_context6.next = 19; | ||
break; | ||
case 17: | ||
_context6.prev = 17; | ||
_context6.t0 = _context6["catch"](12); | ||
case 19: | ||
case "end": | ||
@@ -324,3 +344,3 @@ return _context6.stop(); | ||
} | ||
}, _callee6, this); | ||
}, _callee6, this, [[12, 17]]); | ||
})); | ||
@@ -327,0 +347,0 @@ return _cmd.apply(this, arguments); |
{ | ||
"name": "git-bash-shell", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Use Git Bash as cross-platform shell for Windows", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
"eclint": "^2.8.1", | ||
"eslint": "^5.11.0", | ||
"eslint": "^5.11.1", | ||
"eslint-config-standard": "^12.0.0", | ||
@@ -49,0 +49,0 @@ "eslint-plugin-import": "^2.14.0", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
81626
2380
70