[MegaLinter] Apply linters automatic fixes
parent
5fc69335b5
commit
1f4e98ac30
|
@ -272,7 +272,7 @@ function Add-WAUWhiteList ($AppID) {
|
||||||
}
|
}
|
||||||
Write-ToLog "-> Add $AppID to WAU included_apps.txt"
|
Write-ToLog "-> Add $AppID to WAU included_apps.txt"
|
||||||
#Add App to "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
|
#Remove duplicate and blank lines
|
||||||
$file = Get-Content $WhiteList | Select-Object -Unique | Where-Object { $_.trim() -ne "" } | Sort-Object
|
$file = Get-Content $WhiteList | Select-Object -Unique | Where-Object { $_.trim() -ne "" } | Sort-Object
|
||||||
$file | Out-File $WhiteList
|
$file | Out-File $WhiteList
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#Function to get the outdated app list, in formatted array
|
#Function to get the outdated app list, in formatted array
|
||||||
|
|
||||||
function Get-WingetOutdatedApps {
|
function Get-WingetOutdatedApp {
|
||||||
class Software {
|
class Software {
|
||||||
[string]$Name
|
[string]$Name
|
||||||
[string]$Id
|
[string]$Id
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#Function to rotate the logs
|
#Function to rotate the logs
|
||||||
|
|
||||||
function Invoke-LogRotation ($LogFile, $MaxLogFiles, $MaxLogSize) {
|
function Invoke-LogRotation ($LogFile, $MaxLogFiles, $MaxLogSize) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue