This commit is contained in:
Benoit Daloze
2020-06-10 23:44:28 +02:00
parent 44338c51c7
commit bf8b766096
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ function findUbuntuVersion() {
export function win2nix(path) {
if (/^[A-Z]:/i.test(path)) {
// path starts with drive
path = `/${path[0].toLowerCase()}${path.split(':')[1]}`
path = `/${path[0].toLowerCase()}${path.split(':', 2)[1]}`
}
return path.replace(/\\/g, '/').replace(/ /g, '\\ ')
}