diff --git a/.github/cspell.json b/.github/cspell.json index 8b9e341..b237755 100644 --- a/.github/cspell.json +++ b/.github/cspell.json @@ -49,4 +49,4 @@ "*.csv", "*.txt" ] -} \ No newline at end of file +} diff --git a/Sources/Winget-AutoUpdate/Winget-Install.ps1 b/Sources/Winget-AutoUpdate/Winget-Install.ps1 index 055433e..033b925 100644 --- a/Sources/Winget-AutoUpdate/Winget-Install.ps1 +++ b/Sources/Winget-AutoUpdate/Winget-Install.ps1 @@ -272,7 +272,7 @@ function Add-WAUWhiteList ($AppID) { } Write-ToLog "-> Add $AppID to WAU included_apps.txt" #Add App to "included_apps.txt" - Add-Content -path $WhiteList -Value "`n$AppID" -Force + Add-Content -Path $WhiteList -Value "`n$AppID" -Force #Remove duplicate and blank lines $file = Get-Content $WhiteList | Select-Object -Unique | Where-Object { $_.trim() -ne "" } | Sort-Object $file | Out-File $WhiteList diff --git a/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 b/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 index 2b4e09c..fa342d3 100644 --- a/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Invoke-LogRotation.ps1 @@ -1,4 +1,4 @@ -#Function to rotate the logs +#Function to rotate the logs function Invoke-LogRotation ($LogFile, $MaxLogFiles, $MaxLogSize) {