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
parent
5673195042
commit
9c9d268340
|
@ -3,7 +3,7 @@
|
||||||
#Get the Working Dir
|
#Get the Working Dir
|
||||||
$Script:WorkingDir = $PSScriptRoot
|
$Script:WorkingDir = $PSScriptRoot
|
||||||
#Get Functions
|
#Get Functions
|
||||||
Get-ChildItem "$WorkingDir\functions" | ForEach-Object { . $_.FullName }
|
Get-ChildItem "$WorkingDir\functions" -File -Filter "*.ps1" -Depth 0 | ForEach-Object { . $_.FullName }
|
||||||
|
|
||||||
|
|
||||||
<# MAIN #>
|
<# MAIN #>
|
||||||
|
|
Loading…
Reference in New Issue