Skip to content

Commit

Permalink
refactor: simplify command variable declarations in Powershell module…
Browse files Browse the repository at this point in the history
… update
  • Loading branch information
niStee committed Nov 2, 2024
1 parent 8a48a1d commit 5ac1a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/steps/powershell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ impl Powershell {

print_separator(t!("Powershell Modules Update"));

let mut unload_cmd = vec!["Get-Module | Remove-Module -Force"];
let unload_cmd = ["Get-Module | Remove-Module -Force"];
let mut update_cmd = vec!["Update-Module"];
let mut reload_cmd = vec!["Get-Module -ListAvailable | Import-Module"];
let reload_cmd = ["Get-Module -ListAvailable | Import-Module"];

if ctx.config().verbose() {
update_cmd.push("-Verbose");
Expand Down

0 comments on commit 5ac1a2d

Please sign in to comment.