dfinke / InstallModuleFromGitHub

Install PowerShell Modules from GitHub
Apache License 2.0
87 stars 31 forks source link

Assignment where there should be a equality operator #26

Closed NegativeZero000 closed 2 years ago

NegativeZero000 commented 2 years ago

In

https://github.com/dfinke/InstallModuleFromGitHub/blob/master/InstallModuleFromGitHub.psm1

On line 62 and 70 I see

if ($Scope = "CurrentUser") {

That will always evaluate to true and ignores the value supplied for that parameter. Venture a guess that is supposed to be if ($Scope -eq "CurrentUser") {