From bbf4b22296f19f48fa65965344599f771d02cef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 2 Feb 2022 15:23:46 +0100 Subject: [PATCH] Fix for Apple signed software Somehow went missing in the Isaac logging. --- fragments/functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fragments/functions.sh b/fragments/functions.sh index 78e7704..2e1fc8a 100644 --- a/fragments/functions.sh +++ b/fragments/functions.sh @@ -564,7 +564,13 @@ installFromPKG() { spctlOut=$(spctl -a -vv -t install "$archiveName" 2>&1 ) spctlStatus=$(echo $?) printlog "spctlOut is $spctlOut" DEBUG + teamID=$(echo $spctlOut | awk -F '(' '/origin=/ {print $2 }' | tr -d '()' ) + # Apple signed software has no teamID, grab entire origin instead + if [[ -z $teamID ]]; then + teamID=$(echo $spctlOut | awk -F '=' '/origin=/ {print $NF }') + fi + deduplicatelogs "$spctlOut" if [[ $spctlStatus -ne 0 ]] ; then