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 {
272
272
$Destination = Get-PSDefaultModulePath - AllUsers:($Scope -eq ' AllUsers' )
273
273
274
274
# 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
+
276
277
if ($IsWindows -and $Destination -eq $defaultWindowsModulePath -and $Scope -ne ' CurrentUser' ) {
277
278
Write-Debug " Windows Documents module folder detected. Changing to $defaultRepoPath "
278
279
$Destination = $defaultRepoPath
You can’t perform that action at this time.
0 commit comments