File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,13 @@ function Invoke-DbcCheck {
379
379
Write-PSFMessage - Message " You are running a single check that is not yet converted to v5." - Level Warning
380
380
Return
381
381
}
382
+ foreach ($c in $Check ) {
383
+ # So that if the only check passed in is not yet converted
384
+ if ($c -in $notv5 ) {
385
+ $Message = " You are running a check {0} that is not yet converted to v5." -f $c
386
+ Write-PSFMessage - Message $Message - Level Warning
387
+ }
388
+ }
382
389
} catch {
383
390
Write-PSFMessage - Message ' Something Went wrong' - Level Warning - ErrorRecord $_
384
391
Return
@@ -391,7 +398,13 @@ function Invoke-DbcCheck {
391
398
}
392
399
}
393
400
end {
394
-
401
+ foreach ($c in $Check ) {
402
+ # So that if the only check passed in is not yet converted
403
+ if ($c -in $notv5 ) {
404
+ $Message = " You are running a check {0} that is not yet converted to v5." -f $c
405
+ Write-PSFMessage - Message $Message - Level Warning
406
+ }
407
+ }
395
408
}
396
409
397
410
You can’t perform that action at this time.
0 commit comments