Update main.js code flow so proxy always gets stopped + add comment on why exit status is handled in bin/aikido-(tool).js

This commit is contained in:
Sander Declerck 2025-10-06 13:47:38 +02:00
parent ccaa7934ee
commit 3ef4ed8bad
No known key found for this signature in database
2 changed files with 30 additions and 16 deletions

View file

@ -62,9 +62,11 @@ export async function scanCommand(args) {
if (!audit || audit.isAllowed) {
spinner.stop();
return 0;
} else {
printMaliciousChanges(audit.disallowedChanges, spinner);
await onMalwareFound();
return 1;
}
}