Skip to content

Commit 04dd632

Browse files
committed
always verify if pkgx is installed
1 parent 65b0326 commit 04dd632

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pkgx.ts

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ async function setupPkgx() {
4747
}
4848

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

0 commit comments

Comments
 (0)