N=0
while [ 1 ]; do
echo "Checking up on $id"
+ set +e
status=$(xcrun altool --notarization-info $id -u $APPLE_ID -p $APPLE_PASSWORD --output-format xml)
+ set -e
summary=$(echo "$status" | grep -C1 "<key>Status</key>" | tail -n 1 | sed -e "s/ .//g")
echo "Got $summary"
if [ "$summary" == "<string>invalid</string>" ]; then