Update Winget-Upgrade.ps1

Quick-Fix for bug reported in https://github.com/Romanitho/Winget-AutoUpdate/issues/543

Summary: with additional parameters we filter files (and ignore folders), then drill it down to PS1 files, also proactively we ignore sub-folders if such are present.
pull/544/head
Andrzej Demski 2024-01-13 17:13:27 +01:00 committed by GitHub
parent 5673195042
commit 9c9d268340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#Get the Working Dir
$Script:WorkingDir = $PSScriptRoot
#Get Functions
Get-ChildItem "$WorkingDir\functions" | ForEach-Object { . $_.FullName }
Get-ChildItem "$WorkingDir\functions" -File -Filter "*.ps1" -Depth 0 | ForEach-Object { . $_.FullName }
<# MAIN #>