We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 499d3ff commit fc8d920Copy full SHA for fc8d920
1 file changed
ModuleFast.psm1
@@ -272,7 +272,8 @@ function Install-ModuleFast {
272
$Destination = Get-PSDefaultModulePath -AllUsers:($Scope -eq 'AllUsers')
273
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'
+ $defaultWindowsModulePath = $isWindows ? (Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'PowerShell/Modules') : 'XXX___NOTSUPPORTED'
276
+
277
if ($IsWindows -and $Destination -eq $defaultWindowsModulePath -and $Scope -ne 'CurrentUser') {
278
Write-Debug "Windows Documents module folder detected. Changing to $defaultRepoPath"
279
$Destination = $defaultRepoPath
0 commit comments