diff --git a/Winget-AutoUpdate/functions/Test-ListPath.ps1 b/Winget-AutoUpdate/functions/Test-ListPath.ps1 index 7711a78..f9a8fe6 100644 --- a/Winget-AutoUpdate/functions/Test-ListPath.ps1 +++ b/Winget-AutoUpdate/functions/Test-ListPath.ps1 @@ -39,7 +39,7 @@ function Test-ListPath ($ListPath, $UseWhiteList, $WingetUpdatePath) { catch { try { $content = $wc.DownloadString("$ExternalList") - if ($null -ne $content -and $content) { + if ($null -ne $content -and $content -match "\w\.\w") { $wc.DownloadFile($ExternalList, $LocalList) return $true }