File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,8 @@ function Install-ModuleFast {
272272 $Destination = Get-PSDefaultModulePath - AllUsers:($Scope -eq ' AllUsers' )
273273
274274 # Special case for Windows to avoid the default installation path because it has issues with OneDrive
275- $defaultWindowsModulePath = Join-Path ([Environment ]::GetFolderPath(' MyDocuments' )) ' PowerShell/Modules'
275+ $defaultWindowsModulePath = $isWindows ? (Join-Path ([Environment ]::GetFolderPath(' MyDocuments' )) ' PowerShell/Modules' ) : ' XXX___NOTSUPPORTED'
276+
276277 if ($IsWindows -and $Destination -eq $defaultWindowsModulePath -and $Scope -ne ' CurrentUser' ) {
277278 Write-Debug " Windows Documents module folder detected. Changing to $defaultRepoPath "
278279 $Destination = $defaultRepoPath
You can’t perform that action at this time.
0 commit comments