Skip to content

Commit bbee39c

Browse files
so that we know about the unconverted tags
1 parent ef5903c commit bbee39c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

source/functions/Invoke-DbcCheck.ps1

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,13 @@ function Invoke-DbcCheck {
379379
Write-PSFMessage -Message "You are running a single check that is not yet converted to v5." -Level Warning
380380
Return
381381
}
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+
}
382389
} catch {
383390
Write-PSFMessage -Message 'Something Went wrong' -Level Warning -ErrorRecord $_
384391
Return
@@ -391,7 +398,13 @@ function Invoke-DbcCheck {
391398
}
392399
}
393400
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+
}
395408
}
396409

397410

0 commit comments

Comments
 (0)