Skip to content

Commit

Permalink
Update usb
Browse files Browse the repository at this point in the history
  • Loading branch information
aliefamzari authored Dec 14, 2020
1 parent 154001e commit 6314d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usb/usb
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ def pangoEscape(text):
return text.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")

def getLeafDevicePaths():
lines = check_output(['lsblk', '-spndo', 'NAME'], universal_newlines=True)
lines = check_output(['lsblk', '-lpno', 'NAME'], universal_newlines=True)
lines = lines.split("\n")
lines = filter(None, lines)
return lines

def getKernelName(path):
return check_output(['lsblk', '-ndso', 'KNAME', path],
return check_output(['lsblk', '-lndo', 'KNAME', path],
universal_newlines=True).rstrip("\n")

def getDeviceType(path):
Expand Down

0 comments on commit 6314d16

Please sign in to comment.