Skip to content

Commit

Permalink
Merge pull request #72 from tsirysndr/fix/command-install
Browse files Browse the repository at this point in the history
fix: resolve issue with the command installer
  • Loading branch information
tsirysndr authored Oct 6, 2023
2 parents 00dd767 + 17b8d2f commit d69a891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export async function availableCommands(): Promise<string[]> {
}

export async function canExecCommand(exec: string) {
return (await availableCommands()).includes(exec);
const command = exec.split(" ")[0];
return (await availableCommands()).includes(command);
}

export async function evaluateSystemCommand(command: string) {
Expand Down

0 comments on commit d69a891

Please sign in to comment.