mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
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:
parent
ccaa7934ee
commit
3ef4ed8bad
2 changed files with 30 additions and 16 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue