microsoft / tfs-cli

Cross-platform CLI for Microsoft Team Foundation Server and Visual Studio Team Services
MIT License
372 stars 132 forks source link

Fix magic mime when `file` output is multiline #415

Open Drarig29 opened 2 years ago

Drarig29 commented 2 years ago

Closes #414

This PR fixes the above issue, when the output of file is multiline.

For the following file output:

datadog-ci/node_modules/fsevents/fsevents.node: application/x-mach-binary
datadog-ci/node_modules/fsevents/fsevents.node (for architecture x86_64):       application/x-mach-binary
datadog-ci/node_modules/fsevents/fsevents.node (for architecture arm64):        application/x-mach-binary

The output is application/x-mach-binary, and not arm64):	application/x-mach-binary.