mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-18 02:06:26 +00:00
don't output from remotectl
This commit is contained in:
parent
8fd38329d7
commit
0253fc94bd
@ -107,7 +107,13 @@ def get_hw_model():
|
||||
|
||||
def get_bridge_id():
|
||||
"""Gets the local system DeviceID for T2 Macs"""
|
||||
remotectl_cmd = ["/usr/libexec/remotectl", "get-property", "localbridge", "HWModel"]
|
||||
remotectl_cmd = [
|
||||
"/usr/libexec/remotectl",
|
||||
"get-property",
|
||||
"localbridge",
|
||||
"HWModel",
|
||||
"2>/dev/null",
|
||||
]
|
||||
try:
|
||||
remotectl_output = subprocess.check_output(remotectl_cmd)
|
||||
bridge_id = remotectl_output.decode("utf8").split(" ")[-1].split("\n")[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user