This repository was archived by the owner on Jun 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Modules/OperationValidation Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ param (
256
256
257
257
$potentialDiagnostics = $versionDirectories | where-object {
258
258
test-path ($_.fullname + " \Diagnostics" )
259
- }
259
+ }
260
260
# now select the most recent module path which has diagnostics
261
261
$DiagnosticDir = $potentialDiagnostics |
262
262
sort-object {$_.name -as [version ]} |
@@ -294,12 +294,12 @@ param (
294
294
295
295
# Get the module manifest so we can pull out the version
296
296
$moduleName = Split-Path - Path $module - Leaf
297
- $manifestFile = Get-ChildItem - Path $module - Filter " $moduleName .psd1"
297
+ $manifestFile = Get-ChildItem - Path $module - Filter " $ ( $ moduleName) .psd1"
298
298
if (-not $manifestFile ) {
299
- if ($moduleName -as [version ]) {
299
+ if (" $moduleName " -as [version ]) {
300
300
# We are in a "version" directory so get the actual module name from the parent directory
301
- $parent = (Split-Path - Path $module - Parent).Name
302
- $manifestFile = Get-ChildItem - Path $module - Filter " $parent .psd1"
301
+ $parent = Split-Path - Path (Split-Path - Path $module - Parent) - Leaf
302
+ $manifestFile = Get-ChildItem - Path $module - Filter " $ ( $ parent) .psd1"
303
303
}
304
304
}
305
305
You can’t perform that action at this time.
0 commit comments