balena-io-modules / drivelist

List all connected drives in your computer, in all major operating systems
Apache License 2.0
239 stars 90 forks source link

Fix lsblk JSON output utf-8 encoded characters #321

Closed thundron closed 5 years ago

thundron commented 5 years ago

Replaces https://github.com/balena-io-modules/drivelist/pull/320

Change-type: patch Signed-off-by: Lorenzo Alberto Maria Ambrosi lorenzothunder.ambrosi@gmail.com

lurch commented 5 years ago

Do you need to catch any errors from parsePairs ?

thundron commented 5 years ago

@lurch It seems like we don't, the parsePairs function is just filtering and mapping so it won't break