Skip to content

Commit

Permalink
fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Sep 30, 2022
1 parent 0d8d863 commit d7337b5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions private/Start-DscUpdate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -596,13 +596,10 @@ function Start-DscUpdate {
$exists = Get-KbInstalledSoftware -ComputerName $ComputerName -Pattern $hotfix.property.id -IncludeHidden

if ($exists.Summary -match "restart") {
$status = "Install successful. This update requires a restart | $($exists.Summary)"
# The summary is just too long
$status = "Install successful. This update requires a restart."
} else {
if ($exists.Summary) {
$status = "Install successful"
} else {
$status = "Install successful | $($exists.Summary)"
}
$status = "Install successful"
}
if ($HotfixId) {
$id = $HotfixId
Expand Down

0 comments on commit d7337b5

Please sign in to comment.