refactor(powershell): store powershell path directly
This commit is contained in:
@@ -463,14 +463,7 @@ impl Step {
|
||||
PlatformioCore => runner.execute(*self, "PlatformIO Core", || generic::run_platform_io(ctx))?,
|
||||
Pnpm => runner.execute(*self, "pnpm", || node::run_pnpm_upgrade(ctx))?,
|
||||
Poetry => runner.execute(*self, "Poetry", || generic::run_poetry(ctx))?,
|
||||
Powershell => {
|
||||
let powershell = ctx.powershell();
|
||||
if powershell.is_available() {
|
||||
runner.execute(Powershell, "Powershell Modules Update", || {
|
||||
powershell.update_modules(ctx)
|
||||
})?;
|
||||
}
|
||||
}
|
||||
Powershell => runner.execute(Powershell, "Powershell Modules Update", || generic::run_powershell(ctx))?,
|
||||
Protonup =>
|
||||
{
|
||||
#[cfg(target_os = "linux")]
|
||||
|
||||
Reference in New Issue
Block a user