adding more debug output to notarization script

This commit is contained in:
Martin Lippert
2021-06-16 13:49:25 +02:00
parent 09632a4610
commit 6623ff31af

View File

@@ -16,12 +16,23 @@ UUID=$(echo ${RESPONSE} | jq -r '.uuid')
STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status')
echo "Status after submitting"
echo ${STATUS}
while [[ ${STATUS} == 'IN_PROGRESS' ]]; do
sleep 1m
RESPONSE=$(curl -s ${NOTARIZE_SERVICE_URL}/macos-notarization-service/${UUID}/status)
STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status')
echo "Waiting for status to change"
echo ${RESPONSE}
echo ${STATUS}
done
echo "Status is not in progress anymore"
echo ${RESPONSE}
echo ${STATUS}
if [[ ${STATUS} != 'COMPLETE' ]]; then
echo "Notarization failed: ${RESPONSE}"
exit 1