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 1246f9d commit a825a55Copy full SHA for a825a55
Source/Configuration.psm1
@@ -59,7 +59,7 @@ function InitializeStoragePaths {
59
if(!($MachineData = $MyInvocation.MyCommand.Module.PrivateData.PathOverride.MachineData)) {
60
if($IsLinux -or $IsMacOs) {
61
# Defaults to /etc/xdg elsewhere
62
- $XdgConfigDirs = $Env:XDG_CONFIG_DIRS -split ([IO.Path]::PathSeparator) | Where-Object { Test-Path $_ }
+ $XdgConfigDirs = $Env:XDG_CONFIG_DIRS -split ([IO.Path]::PathSeparator) | Where-Object { $_ -and (Test-Path $_) }
63
if(!($MachineData = if($XdgConfigDirs.Count -gt 1) { $XdgConfigDirs[1]})) {
64
$MachineData = "/etc/xdg/"
65
}
0 commit comments