From 09db5c30335a69bcec23e9d0cc0d9059605844b5 Mon Sep 17 00:00:00 2001 From: GAJ-san Date: Wed, 11 Jan 2023 12:18:38 +0100 Subject: [PATCH] Fix --- Winget-AutoUpdate/functions/Test-ModsPath.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 + } } } }