We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66aa24f commit 94034a5Copy full SHA for 94034a5
InstallModuleFromGitHub.psm1
@@ -59,15 +59,15 @@ function Install-ModuleFromGitHub {
59
Write-Debug "targetModule: $targetModule"
60
61
if ([System.Environment]::OSVersion.Platform -eq "Unix") {
62
- if ($Scope = "CurrentUser") {
+ if ($Scope -eq "CurrentUser") {
63
$dest = Join-Path -Path $HOME -ChildPath ".local/share/powershell/Modules"
64
} else {
65
$dest = "/usr/local/share/powershell/Modules"
66
}
67
68
69
else {
70
71
$scopedPath = $HOME
72
$scopedChildPath = "\Documents\PowerShell\Modules"
73
0 commit comments