Skip to content

Commit

Permalink
refactor(powershell): update args method for has_module function
Browse files Browse the repository at this point in the history
  • Loading branch information
nistee committed Feb 15, 2025
1 parent 2ece72a commit e2a945c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/steps/powershell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ mod windows {

fn has_module(powershell: &PathBuf, command: &str) -> bool {
Command::new(powershell)
.args(&[
.args([
"-NoProfile",
"-Command",
&format!("Get-Module -ListAvailable {}", command),
Expand Down

0 comments on commit e2a945c

Please sign in to comment.