Skip to content

Commit

Permalink
Don't fail on which failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed May 2, 2024
1 parent 288cbf4 commit b2360a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stack-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export class StackCLI {
}

async installed(): Promise<boolean> {
const ec = await exec.exec("which", ["stack"]);
const ec = await exec.exec("which", ["stack"], {
silent: true,
ignoreReturnCode: true,
});
return ec == 0;
}

Expand Down

0 comments on commit b2360a9

Please sign in to comment.