Skip to content

Commit

Permalink
feat: output zero exit code when practices fail on CI
Browse files Browse the repository at this point in the history
safer option which let the pipeline continue
  • Loading branch information
vlasy committed Dec 18, 2020
1 parent 57e6fa7 commit 192bd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default class Run {
console.info('Scan duration %ds.', hrend[0]);

if (scanResult.shouldExitOnEnd) {
process.exit(1);
process.exit(cmd.ci ? 0 : 1); // could be written as +!cmd.ci but I'm not here to show off
}
}
}

0 comments on commit 192bd88

Please sign in to comment.