Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Winget-Upgrade.ps1 #544

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

AndrewDemski-ad-gmail-com
Copy link
Contributor

Quick-Fix for bug reported in #543

Summary: fine-tuned the function import

Get-ChildItem "$WorkingDir\functions" | ForEach-Object { . $_.FullName }

Proposed Changes

With additional parameters we filter/select file items + files with specific extension (*.ps1)

Get-ChildItem "$WorkingDir\functions" -File -Filter "*.ps1" -Depth 0 | ForEach-Object { . $_.FullName }

Related Issues

#543

Quick-Fix for bug reported in Romanitho#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.
@AndrewDemski-ad-gmail-com
Copy link
Contributor Author

Open part of that issue:

  • how to handle the content of functions folder during installation of WAU or updating/downgrading it to different version?

@Romanitho Romanitho merged commit 1d39ed3 into Romanitho:main Feb 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants