Fixed pkg teamID calculation

This commit is contained in:
Søren Theilgaard
2021-11-19 14:59:15 +01:00
parent c1312e0d01
commit b6f0afb8ba

View File

@@ -61,9 +61,9 @@ versionFromGit() {
pkgInvestigation() { pkgInvestigation() {
echo "Package investigation." echo "Package investigation."
teamID=$(spctl -a -vv -t install "$archiveName" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' ) teamID=$(spctl -a -vv -t install "$pkgPath" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' )
if [[ -z $teamID ]]; then if [[ -z $teamID ]]; then
echo "Error verifying PKG: $archiveName" echo "Error verifying PKG: $pkgPath"
echo "No TeamID found." echo "No TeamID found."
exit 4 exit 4
fi fi