From b37858f26b51562a951e7a3dd8082e21bb8d8179 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Sun, 15 Jan 2023 14:52:30 +0100 Subject: [PATCH] No LB first in log if Log Rotating... --- Winget-AutoUpdate/Winget-Upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/Winget-Upgrade.ps1 b/Winget-AutoUpdate/Winget-Upgrade.ps1 index a201e0d..a880d87 100644 --- a/Winget-AutoUpdate/Winget-Upgrade.ps1 +++ b/Winget-AutoUpdate/Winget-Upgrade.ps1 @@ -58,7 +58,7 @@ if ($IsSystem) { } if ($Rotate -eq $True) { #Log Header - $Log = "`n##################################################`n# CHECK FOR APP UPDATES - $(Get-Date -Format (Get-culture).DateTimeFormat.ShortDatePattern)`n##################################################" + $Log = "##################################################`n# CHECK FOR APP UPDATES - $(Get-Date -Format (Get-culture).DateTimeFormat.ShortDatePattern)`n##################################################" $Log | out-file -filepath $LogFile -Append Write-Log "Running in System context" if ($ActivateGPOManagement) {