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) {