Skip to content

Commit 94034a5

Browse files
authored
Fix '=' to '-eq' #26
1 parent 66aa24f commit 94034a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InstallModuleFromGitHub.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ function Install-ModuleFromGitHub {
5959
Write-Debug "targetModule: $targetModule"
6060

6161
if ([System.Environment]::OSVersion.Platform -eq "Unix") {
62-
if ($Scope = "CurrentUser") {
62+
if ($Scope -eq "CurrentUser") {
6363
$dest = Join-Path -Path $HOME -ChildPath ".local/share/powershell/Modules"
6464
} else {
6565
$dest = "/usr/local/share/powershell/Modules"
6666
}
6767
}
6868

6969
else {
70-
if ($Scope = "CurrentUser") {
70+
if ($Scope -eq "CurrentUser") {
7171
$scopedPath = $HOME
7272
$scopedChildPath = "\Documents\PowerShell\Modules"
7373
} else {

0 commit comments

Comments
 (0)