Cleaned
parent
3262d11099
commit
04dd756217
|
@ -23,10 +23,9 @@ function Test-ModsPath ($ModsPath, $WingetUpdatePath) {
|
|||
return $False
|
||||
}
|
||||
|
||||
#Delete Local Mods that doesn't exist Externally
|
||||
if ($WebResponse) {
|
||||
# Get the list of links, skip the first one ("../") if listing is allowed
|
||||
$ModLinks = $WebResponse.Links | Select-Object -ExpandProperty href -Skip 1
|
||||
#Delete Local Mods that doesn't exist Externally
|
||||
foreach ($Mod in $InternalModsNames) {
|
||||
try {
|
||||
If ($Mod -notin $ModLinks) {
|
||||
|
@ -37,7 +36,6 @@ function Test-ModsPath ($ModsPath, $WingetUpdatePath) {
|
|||
#Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Loop through all links
|
||||
$WebResponse.Links | Select-Object -ExpandProperty href -Skip 1 | ForEach-Object {
|
||||
|
|
Loading…
Reference in New Issue