From 5fc69335b59971c9eb7e860ab62a231e64f81580 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Tue, 3 Sep 2024 00:20:04 +0200 Subject: [PATCH] add comment --- Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 b/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 index 19309fe..2b4e09c 100644 --- a/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 @@ -19,6 +19,7 @@ function Invoke-LogRotation ($LogFile, $MaxLogFiles, $MaxLogSize) { # construct name of archived log file $newLogFileName = $logFileNameWithoutExtension + (Get-Date -Format 'yyyyMMddHHmmss').ToString() + $logFileNameExtension + # rename old log file Rename-Item -Path $LogFile -NewName $newLogFileName -Force -Confirm:$false # create new file