From 1fc9589998eabf2c141676b5ff9a718426b663ff Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Sun, 18 Sep 2022 04:37:15 +0200 Subject: [PATCH] Revert "Parameter + Function $ListPath Delete..." This reverts commit 28bb1845d42a6724b0d7c7ffd560461e9ebde954. --- Winget-AutoUpdate-Install.ps1 | 1 + Winget-AutoUpdate/functions/Test-ListPath.ps1 | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 Winget-AutoUpdate/functions/Test-ListPath.ps1 diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index 68fb824..9c27ece 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -58,6 +58,7 @@ Run WAU on metered connection. Default No. param( [Parameter(Mandatory = $False)] [Alias('S')] [Switch] $Silent = $false, [Parameter(Mandatory = $False)] [Alias('Path')] [String] $WingetUpdatePath = "$env:ProgramData\Winget-AutoUpdate", + [Parameter(Mandatory = $False)] [Alias('List')] [String] $ListPath = $WingetUpdatePath, [Parameter(Mandatory = $False)] [Switch] $DoNotUpdate = $false, [Parameter(Mandatory = $False)] [Switch] $DisableWAUAutoUpdate = $false, [Parameter(Mandatory = $False)] [Switch] $RunOnMetered = $false, diff --git a/Winget-AutoUpdate/functions/Test-ListPath.ps1 b/Winget-AutoUpdate/functions/Test-ListPath.ps1 new file mode 100644 index 0000000..506dd17 --- /dev/null +++ b/Winget-AutoUpdate/functions/Test-ListPath.ps1 @@ -0,0 +1,6 @@ +#Function to check Black/White List + +function Test-ListPath ($ListPath, $UseWhiteList) { + + +}