mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Rename function
This commit is contained in:
parent
7ed943d46f
commit
b3372cc50e
1 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ function toBashPath(path) {
|
|||
}
|
||||
|
||||
if (hasCygpath()) {
|
||||
return cygpathu(path);
|
||||
return convertCygwinPathToUnix(path);
|
||||
}
|
||||
|
||||
return path.replace(/\\/g, "/");
|
||||
|
|
@ -176,7 +176,7 @@ function cygpathw(path) {
|
|||
*
|
||||
* @returns {string}
|
||||
*/
|
||||
function cygpathu(path) {
|
||||
function convertCygwinPathToUnix(path) {
|
||||
try {
|
||||
var result = spawnSync("cygpath", ["-u", path], {
|
||||
encoding: "utf8",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue