Skip to content

Commit

Permalink
fix: check installed using command -v
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Oct 6, 2024
1 parent 55e6e8d commit 130ff32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stages/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export const install = async () => {
};

export const isInstalled = async () => {
let returnCode = await exec("attic", ["-V"]);
let returnCode = await exec("sh", ["-c", "command -v attic &> /dev/null"]);
return returnCode === 0;
};

0 comments on commit 130ff32

Please sign in to comment.