This commit is contained in:
Bubbl3H3d 2020-09-30 15:55:15 -04:00 committed by GitHub
commit 86cb9c2b35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -877,7 +877,7 @@ a modifiable path.
# if the path doesn't exist, check if the parent folder allows for modification
try {
$ParentPath = (Split-Path -Path $TempPath -Parent -ErrorAction SilentlyContinue).Trim()
if ($ParentPath -and ($ParentPath -ne '') -and (Test-Path -Path $ParentPath -ErrorAction SilentlyContinue)) {
if ($ParentPath -and ($ParentPath -ne '','C:\') -and (Test-Path -Path $ParentPath -ErrorAction SilentlyContinue)) {
$CandidatePaths += Resolve-Path -Path $ParentPath -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Path
}
}