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:
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user