From 5c2689dea4448a99f9ddc47bdf56a521e09f435a Mon Sep 17 00:00:00 2001 From: William Kent Date: Fri, 2 Aug 2019 12:24:38 -0400 Subject: [PATCH] Print log file URL before exiting with an error --- installer/notarize.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/notarize.sh b/installer/notarize.sh index a74e871..14fe6da 100755 --- a/installer/notarize.sh +++ b/installer/notarize.sh @@ -48,14 +48,14 @@ if [[ $request_id =~ ^\{?[A-F0-9a-f]{8}-[A-F0-9a-f]{4}-[A-F0-9a-f]{4}-[A-F0-9a-f fi done + log_url=$(/usr/libexec/PlistBuddy -c "print :notarization-info:LogFileURL" $ALTOOL_LOG) + echo "Log file can be downloaded from: $log_url" + if [ "$notarization_status" != "success" ]; then echo "altool reported notarization error" 1>&2 exit 1 fi - log_url=$(/usr/libexec/PlistBuddy -c "print :notarization-info:LogFileURL" $ALTOOL_LOG) - echo "Log file can be downloaded from: $log_url" - xcrun stapler staple $MY_DIR/darwinbuild-installer.pkg xcrun stapler validate -v $MY_DIR/darwinbuild-installer.pkg if [ $@ -ne 0 ]; then