1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

add FreeBSD support

This commit is contained in:
Kelly Brazil
2021-10-20 07:34:37 -07:00
parent 908b2f9200
commit 2b2123a4ba
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ jc changelog
20211019 v1.17.1 *** in progress ***
- Fix file parser for gzip files
- Fix uname parser for cases where the 'processor' and/or 'machine' fields are missing on linux
- Fix uname parser on FreeBSD
- Add lsusb parser tested on linux
20210923 v1.17.0

View File

@ -98,8 +98,8 @@ def parse(data, raw=False, quiet=False):
if jc.utils.has_data(data):
# check for OSX output
if data.startswith('Darwin'):
# check for macOS or FreeBSD output
if data.startswith('Darwin') or data.startswith('FreeBSD'):
parsed_line = data.split()
if len(parsed_line) < 5: