mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +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
|
||||
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()
|
||||
return new Map(couples)
|
||||
}
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user