mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +02:00
use in instead of find()
This commit is contained in:
@ -56,7 +56,7 @@ import jc.utils
|
|||||||
|
|
||||||
|
|
||||||
class info():
|
class info():
|
||||||
version = '1.1'
|
version = '1.2'
|
||||||
description = 'mount command parser'
|
description = 'mount command parser'
|
||||||
author = 'Kelly Brazil'
|
author = 'Kelly Brazil'
|
||||||
author_email = 'kellyjonbrazil@gmail.com'
|
author_email = 'kellyjonbrazil@gmail.com'
|
||||||
@ -165,7 +165,7 @@ def parse(data, raw=False, quiet=False):
|
|||||||
|
|
||||||
if cleandata:
|
if cleandata:
|
||||||
# check for OSX output
|
# check for OSX output
|
||||||
if cleandata[0].find(' type ') == -1:
|
if ' type ' in cleandata[0]:
|
||||||
raw_output = osx_parse(cleandata)
|
raw_output = osx_parse(cleandata)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user