mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
add FreeBSD support
This commit is contained in:
@ -3,6 +3,7 @@ jc changelog
|
|||||||
20211019 v1.17.1 *** in progress ***
|
20211019 v1.17.1 *** in progress ***
|
||||||
- Fix file parser for gzip files
|
- 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 for cases where the 'processor' and/or 'machine' fields are missing on linux
|
||||||
|
- Fix uname parser on FreeBSD
|
||||||
- Add lsusb parser tested on linux
|
- Add lsusb parser tested on linux
|
||||||
|
|
||||||
20210923 v1.17.0
|
20210923 v1.17.0
|
||||||
|
@ -98,8 +98,8 @@ def parse(data, raw=False, quiet=False):
|
|||||||
|
|
||||||
if jc.utils.has_data(data):
|
if jc.utils.has_data(data):
|
||||||
|
|
||||||
# check for OSX output
|
# check for macOS or FreeBSD output
|
||||||
if data.startswith('Darwin'):
|
if data.startswith('Darwin') or data.startswith('FreeBSD'):
|
||||||
parsed_line = data.split()
|
parsed_line = data.split()
|
||||||
|
|
||||||
if len(parsed_line) < 5:
|
if len(parsed_line) < 5:
|
||||||
|
Reference in New Issue
Block a user