File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ function Get-Registry {
23
23
}
24
24
25
25
. NOTES
26
- Updated: 2023-12-04
26
+ Updated: 2024-04-03
27
27
28
28
Contributing Authors:
29
29
Anthony Phipps
30
30
31
- LEGAL: Copyright (C) 2023
31
+ LEGAL: Copyright (C) 2024
32
32
This program is free software: you can redistribute it and/or modify
33
33
it under the terms of the GNU General Public License as published by
34
34
the Free Software Foundation, either version 3 of the License, or
@@ -116,9 +116,8 @@ function Get-Registry {
116
116
else { # A key and value was given
117
117
$value = Split-Path - Leaf $Key
118
118
$Key = Split-Path - Path $Key
119
- $hasData = (Get-Item $Key - ErrorAction SilentlyContinue)
120
119
121
- if ($hasData ) {
120
+ if (Test-Path $Key ) {
122
121
123
122
$output = [pscustomobject ] @ {
124
123
Key = $Key.Split (" :" )[2 ]
You can’t perform that action at this time.
0 commit comments