diff options
Diffstat (limited to 'std/installer/mod.ts')
-rw-r--r-- | std/installer/mod.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/installer/mod.ts b/std/installer/mod.ts index 17752517c..7751bc12e 100644 --- a/std/installer/mod.ts +++ b/std/installer/mod.ts @@ -78,16 +78,16 @@ function getFlagFromPermission(perm: Permission): string { function getInstallerDir(): string { // In Windows's Powershell $HOME environmental variable maybe null - // if so use $HOMEPATH instead. - const { HOME, HOMEPATH } = env(); + // if so use $USERPROFILE instead. + const { HOME, USERPROFILE } = env(); - const HOME_PATH = HOME || HOMEPATH; + const HOME_PATH = HOME || USERPROFILE; if (!HOME_PATH) { throw new Error("$HOME is not defined."); } - return path.join(HOME_PATH, ".deno", "bin"); + return path.resolve(HOME_PATH, ".deno", "bin"); } async function readCharacter(): Promise<string> { |