Skip to content

Commit

Permalink
(chocolateyGH-815) fixes 1 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dtgm committed Jun 19, 2016
1 parent fc1c895 commit 299e0dc
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,8 @@ param(
} catch {
Write-Debug "Found bad key."
foreach ($key in $keys){ try { Get-ItemProperty $key.PsPath > $null } catch { $badKey = $key.PsPath }}
Write-Verbose "Skipping bad key: $($key.PsPath)"
[array]$keys = Get-ChildItem -Path @($machine_key6432, $machine_key, $local_key) `
-ErrorAction SilentlyContinue `
| Where-Object { $badKey -NotContains $_.PsPath }
Write-Verbose "Skipping bad key: $badKey"
[array]$keys = $keys | Where-Object { $badKey -NotContains $_.PsPath }
}

if ($success) { break; }
Expand Down

0 comments on commit 299e0dc

Please sign in to comment.