We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6efa9c commit 434a3c4Copy full SHA for 434a3c4
src/commands/rustup.ts
@@ -90,8 +90,8 @@ export class RustUp {
90
);
91
}
92
93
- // `$HOME` should always be declared, so it is more to get the linters happy
94
- core.addPath(path.join(process.env.HOME!, '.cargo', 'bin')); // eslint-disable-line @typescript-eslint/no-non-null-assertion
+ // `$HOME` or `$USERPROFILE` should always be declared, so it is more to get the linters happy
+ core.addPath(path.join((process.env.HOME || process.env.USERPROFILE)!, '.cargo', 'bin')); // eslint-disable-line @typescript-eslint/no-non-null-assertion
95
96
// Assuming it is in the $PATH already
97
return new RustUp('rustup');
0 commit comments