Skip to content

Commit

Permalink
always verify if pkgx is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 18, 2024
1 parent 65b0326 commit 04dd632
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkgx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ async function setupPkgx() {
}

export async function installPackage(name: string) {
await setupPkgx();
await spawn("sh", [
"-c",
`type ${name} > /dev/null 2> /dev/null || pkgx install ${name}`,
Expand Down

0 comments on commit 04dd632

Please sign in to comment.