Skip to content

Commit

Permalink
Update Winget-Upgrade.ps1
Browse files Browse the repository at this point in the history
Quick-Fix for bug reported in #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.
  • Loading branch information
AndrewDemski-ad-gmail-com authored Jan 13, 2024
1 parent 5673195 commit 9c9d268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 #>
Expand Down

0 comments on commit 9c9d268

Please sign in to comment.