Skip to content

Commit 0b3e4c9

Browse files
authored
Set-HVApplicationIcon Patch
Patching a conditional issue with Set-HVApplicationIcon Signed-off-by: Mathieu Desrosiers desrosim@gmail.com
1 parent 52d3865 commit 0b3e4c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9939,10 +9939,10 @@ function Set-HVApplicationIcon {
99399939
Write-Host "Some application(s) already have an association for the specified icon."
99409940
$ApplicationIconHelper.ApplicationIcon_UpdateAssociations($services, $applicationIconId, @($appInfo.Id))
99419941
Write-Host "Successfully updated customized icon association for Application:[$ApplicationName]."
9942-
break
9943-
}
9944-
Write-Host "Error in associating customized icon for Application:[$ApplicationName] $_"
9945-
break
9942+
} else {
9943+
Write-Host "Error in associating customized icon for Application:[$ApplicationName] $_"
9944+
break
9945+
}
99469946
}
99479947
Write-Host "Successfully associated customized icon for Application:[$ApplicationName]."
99489948
}

0 commit comments

Comments
 (0)