From a262ba531fbad355aa2635f81869af63cf209c58 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Fri, 16 Dec 2022 17:28:12 +0100 Subject: [PATCH] Hopefully fixes #37 --- Public/Invoke-GPOZaurr.ps1 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Public/Invoke-GPOZaurr.ps1 b/Public/Invoke-GPOZaurr.ps1 index 7984c49..aa6f123 100644 --- a/Public/Invoke-GPOZaurr.ps1 +++ b/Public/Invoke-GPOZaurr.ps1 @@ -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