From 0253fc94bd93a4e82e21859266620ab2dabb6e95 Mon Sep 17 00:00:00 2001 From: Graham R Pugh Date: Thu, 6 Aug 2020 21:01:41 +0200 Subject: [PATCH] don't output from remotectl --- installinstallmacos.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/installinstallmacos.py b/installinstallmacos.py index f1d6732..02a7733 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -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]