From feaaa6566ade1effb42c9279487eb90a805624cb Mon Sep 17 00:00:00 2001 From: GAJ-san Date: Tue, 3 Jan 2023 15:22:29 +0100 Subject: [PATCH] Started adoption of Test-ModsPath for IIS --- Winget-AutoUpdate/functions/Test-ModsPath.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Winget-AutoUpdate/functions/Test-ModsPath.ps1 b/Winget-AutoUpdate/functions/Test-ModsPath.ps1 index 7b3e91a..7f49c2d 100644 --- a/Winget-AutoUpdate/functions/Test-ModsPath.ps1 +++ b/Winget-AutoUpdate/functions/Test-ModsPath.ps1 @@ -25,6 +25,15 @@ function Test-ModsPath ($ModsPath, $WingetUpdatePath) { # Collect the external list of href links $ModLinks = $WebResponse.Links | Select-Object -ExpandProperty href + + #If there's a directory path in the HREF:s, delete it (IIS) + $ModLinks -replace "/.*/", "" + #$ModLinks -add "" + $$ModLinks + "" + + # Microsoft.PowerToys-installed.ps1 + #Microsoft.PowerToys-installed.ps1 + #(\x3Ca\x20href=\x22)(.*|.*) + #Delete Local Mods that don't exist Externally foreach ($Mod in $InternalModsNames) { If ($Mod -notin $ModLinks) {