Fix get_serial()

This commit is contained in:
2Shirt 2021-03-19 15:23:49 -06:00
parent 080383d9a9
commit 7147ef1753

View file

@ -155,7 +155,7 @@ class CpuRam(BaseObj):
cmd = ( cmd = (
'ioreg -c IOPlatformExpertDevice -d 2' 'ioreg -c IOPlatformExpertDevice -d 2'
"| awk '/IOPlatformSerialNumber/ {print $3}'" "| awk '/IOPlatformSerialNumber/ {print $3}'"
'| sed s/"//g' "| sed 's/\"//g'"
) )
proc = run_program(cmd, check=False, shell=True) proc = run_program(cmd, check=False, shell=True)
self.serial = proc.stdout.strip() self.serial = proc.stdout.strip()