diff --git a/Winget-AutoUpdate/functions/Test-ModsPath.ps1 b/Winget-AutoUpdate/functions/Test-ModsPath.ps1 index 6eed062..29f0bdf 100644 --- a/Winget-AutoUpdate/functions/Test-ModsPath.ps1 +++ b/Winget-AutoUpdate/functions/Test-ModsPath.ps1 @@ -126,7 +126,9 @@ function Test-ModsPath ($ModsPath, $WingetUpdatePath) { } } catch { - $Script:ReachNoPath = $True + if (($_ -like "*.ps1") -or ($_ -like "*.txt")) { + $Script:ReachNoPath = $True + } } } }