Skip to content

Commit

Permalink
fix(quick start): exit status align to secretlint command (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
azu authored Jul 3, 2023
1 parent bb4ef80 commit c5aa86c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@secretlint/quick-start/bin/quick-start.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import { quickStart } from "../module/index.js";
try {
const { quickStart } = await import("../module/index.js");
const { exitStatus, stderr, stdout } = await quickStart();
if (stdout) {
console.log(stdout);
Expand All @@ -12,5 +12,5 @@ try {
process.exit(exitStatus);
} catch (error) {
console.error(error);
process.exit(1);
process.exit(2); // fatal error
}

0 comments on commit c5aa86c

Please sign in to comment.