Fix VirusTotal gate: accept completed scans with < 60 engines

VT's status=completed is final — no more engines will report. The script
was polling indefinitely when ARM binaries only reached 50/76 engines.
Now accepts any completed scan, logs a NOTE when below MIN_ENGINES.
This commit is contained in:
Martin Vogel committed 2026-04-06 21:24:56 +02:00
1 parent 6f268d0f91
commit d3aa98e7cd
1 file changed
+4 -1
+4 -1
View File
@@ -59,8 +59,11 @@ print(f'{status},{malicious},{suspicious},{completed},{total}')
COMPLETED=$(echo "$STATS" | cut -d',' -f4)
TOTAL=$(echo "$STATS" | cut -d',' -f5)
if [ "$STATUS" = "completed" ] && [ "$COMPLETED" -ge "$MIN_ENGINES" ]; then
if [ "$STATUS" = "completed" ]; then
SCAN_COMPLETE=true
if [ "$COMPLETED" -lt "$MIN_ENGINES" ]; then
echo "NOTE: $BASENAME completed with only $COMPLETED/$TOTAL engines (< $MIN_ENGINES)"
fi
if [ "$MALICIOUS" -gt 0 ] || [ "$SUSPICIOUS" -gt 0 ]; then
echo "BLOCKED: $BASENAME flagged ($MALICIOUS malicious, $SUSPICIOUS suspicious / $COMPLETED engines)"
echo " $URL"