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:
Alexis Svinartchouk 2019-07-23 14:56:47 +02:00 committed by GitHub
commit 17103570f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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.