mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
Merge pull request #2862 from balena-io/fix-windows-mapped-network-drives-vmware
Don't use wmic's ProviderName if it's empty
This commit is contained in:
commit
17103570f1
@ -107,6 +107,8 @@ const getWindowsNetworkDrives = async () => {
|
|||||||
// eslint-disable-next-line no-magic-numbers
|
// eslint-disable-next-line no-magic-numbers
|
||||||
return [ str.slice(0, colonPosition + 1), _.trim(str.slice(colonPosition + 1)) ]
|
return [ str.slice(0, colonPosition + 1), _.trim(str.slice(colonPosition + 1)) ]
|
||||||
})
|
})
|
||||||
|
// eslint-disable-next-line no-magic-numbers
|
||||||
|
.filter((couple) => couple[1].length > 0)
|
||||||
.value()
|
.value()
|
||||||
return new Map(couples)
|
return new Map(couples)
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user