Skip to content

Commit

Permalink
Fix: Allow autoupdate to update old package versions (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly committed Oct 13, 2021
1 parent ecc4216 commit edab77b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tools/YamlCreate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1902,6 +1902,7 @@ if (!$LastVersion) {
try {
$script:LastVersion = Split-Path (Split-Path (Get-ChildItem -Path "$AppFolder\..\" -Recurse -Depth 1 -File -Filter '*.yaml' -ErrorAction SilentlyContinue).FullName ) -Leaf | Sort-Object $ToNatural | Select-Object -Last 1
$script:ExistingVersions = Split-Path (Split-Path (Get-ChildItem -Path "$AppFolder\..\" -Recurse -Depth 1 -File -Filter '*.yaml' -ErrorAction SilentlyContinue).FullName ) -Leaf | Sort-Object $ToNatural | Select-Object -Unique
if ($script:Option -eq 'Auto' -and $PackageVersion -in $script:ExistingVersions) {$LastVersion = $PackageVersion}
Write-Host -ForegroundColor 'DarkYellow' -Object "Found Existing Version: $LastVersion"
$script:OldManifests = Get-ChildItem -Path "$AppFolder\..\$LastVersion"
} catch {
Expand Down

0 comments on commit edab77b

Please sign in to comment.