refactor(powershell): store powershell path directly

This commit is contained in:
Andre Toerien
2025-07-17 15:13:29 +02:00
committed by Gideon
parent b166aae835
commit 3f9fe845e5
6 changed files with 67 additions and 71 deletions

View File

@@ -225,7 +225,7 @@ pub fn run_wsl_topgrade(ctx: &ExecutionContext) -> Result<()> {
}
pub fn windows_update(ctx: &ExecutionContext) -> Result<()> {
let powershell = ctx.powershell();
let powershell = ctx.require_powershell()?;
print_separator(t!("Windows Update"));
@@ -241,7 +241,7 @@ pub fn windows_update(ctx: &ExecutionContext) -> Result<()> {
}
pub fn microsoft_store(ctx: &ExecutionContext) -> Result<()> {
let powershell = ctx.powershell();
let powershell = ctx.require_powershell()?;
print_separator(t!("Microsoft Store"));