Hopefully fixes #37

This commit is contained in:
Przemyslaw Klys
2022-12-16 17:28:12 +01:00
parent ea7b4f1bd8
commit a262ba531f
+2 -8
View File
@@ -195,20 +195,14 @@
}
}
if ( -not $SplitReports) {
if (-not $SplitReports) {
# Generate pretty HTML
$TimeLogHTML = Start-TimeLog
if (-not $FilePath) {
$FilePath = Get-FileName -Extension 'html' -Temporary
}
# Split reports are handled above so we skip if this was set
if ($null -eq $Type -or $Type.Count -gt 1) {
New-HTMLReportAll -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML -Type $Type
} else {
New-HTMLReportWithSplit -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML
}
New-HTMLReportAll -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML -Type $Type
$TimeLogEndHTML = Stop-TimeLog -Time $TimeLogHTML -Option OneLiner
Write-Color -Text '[i]', '[HTML ] ', 'Generating HTML report', " [Time to execute: $TimeLogEndHTML]" -Color Yellow, DarkGray, Yellow, DarkGray