Skip to content

Commit 3ccbcb4

Browse files
committed
warn if install prefix is not in PATH
1 parent 2bdcc1a commit 3ccbcb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkgm.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ async function install(args: string[], basePath: string) {
189189
}
190190
}
191191

192+
if (!Deno.env.get("PATH")?.split(":")?.includes(basePath)) {
193+
console.error("%c! warning:", "color:yellow", `${basePath} not in $PATH`);
194+
}
195+
192196
return rv;
193197
}
194198

0 commit comments

Comments
 (0)