diff --git a/scripts/notarize_mac_app.sh b/scripts/notarize_mac_app.sh index eb56ed829b..1ff56bc5da 100755 --- a/scripts/notarize_mac_app.sh +++ b/scripts/notarize_mac_app.sh @@ -46,8 +46,8 @@ STATUS=$(echo "$SUBMIT_OUTPUT" | grep "^ status:" | awk '{print $2}') echo "Submission ID: $SUBMISSION_ID" echo "Status: $STATUS" -# Clean up the zip -rm "$ZIP_PATH" +# Clean up the zip (use -f to avoid failure if already deleted) +rm -f "$ZIP_PATH" if [ "$STATUS" != "Accepted" ]; then echo "=== Notarization failed! Fetching log for details ==="