From a8d09ba99834bf7ba43af9cf11c007f0bdb722c6 Mon Sep 17 00:00:00 2001 From: Romanitho <96626929+Romanitho@users.noreply.github.com> Date: Thu, 22 Feb 2024 07:47:04 +0000 Subject: [PATCH] [MegaLinter] Apply linters automatic fixes --- README.md | 8 ++++---- Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c583fb1..9b1f611 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Just [download latest release (WAU-Configurator.zip)](https://github.com/Romanit You can exclude apps from update job (for instance, apps you want to keep at a specific version or apps with built-in auto-update): Add (or remove) the apps' ID you want to disable autoupdate to 'excluded_apps.txt'. (File must be placed in WAU's installation folder, or re-run install.bat). - #### Or AllowList -You can update only pre-selected apps. To do so, create an "included_apps.txt" with the apps' ID of the apps you want to auto-update and run the `Winget-AutoUpdate-Install.ps1` with `-UseWhiteList` parameter. Related post: https://github.com/Romanitho/Winget-AutoUpdate/issues/36 +You can update only pre-selected apps. To do so, create an "included_apps.txt" with the apps' ID of the apps you want to auto-update and run the `Winget-AutoUpdate-Install.ps1` with `-UseWhiteList` parameter. Related post: > The lists can contain Wildcard (*). For instance ```Mozilla.Firefox*``` will take care of all Firefox channels. (From v1.19.2-7) @@ -170,7 +170,7 @@ Specify Winget-AutoUpdate installation location. Default: `C:\ProgramData\Winget Remove scheduled tasks and scripts. ## Intune/SCCM use -See https://github.com/Romanitho/Winget-AutoUpdate/discussions/88 +See ## Custom script (Mods for WAU) **Mods for WAU** allows you to craft a script to do whatever you like via `_WAU-mods.ps1` in the **mods** folder.
@@ -196,7 +196,7 @@ You can find more information on [Winget-Install Repo](https://github.com/Romani Read more in the `README.md` under the directory **mods**. Share your mods with the community:
-https://github.com/Romanitho/Winget-AutoUpdate/discussions/categories/mods + ### Winget native parameters Another finess is the **AppID** followed by the `-override` suffix as a **text file** (.**txt**) that you can place under the **mods** folder. @@ -219,7 +219,7 @@ Read more in the `README.md` under the directory **Policies**. In some cases, you need to "unblock" the `install.bat` file (Windows Defender SmartScreen). Right click, properties and unblock. Then, you'll be able to run it. ## Known issues -* As reported by [soredake](https://github.com/soredake), Powershell from MsStore is not supported with WAU in system context. See https://github.com/Romanitho/Winget-AutoUpdate/issues/113 +* As reported by [soredake](https://github.com/soredake), Powershell from MsStore is not supported with WAU in system context. See ## Optimization Feel free to give us any suggestions or optimizations in code and support us by adding a star :) diff --git a/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 b/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 index 6511b42..545049a 100644 --- a/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 +++ b/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 @@ -274,8 +274,8 @@ if (Test-Network) { foreach ($app in $outdated) { #List available updates $Log = "-> Available update : $($app.Name). Current version : $($app.Version). Available version : $($app.AvailableVersion)." - $Log | Write-host - $Log | out-file -filepath $LogFile -Append + $Log | Write-Host + $Log | Out-File -FilePath $LogFile -Append } #Count good update installations