Skip to content

Commit

Permalink
remove nupkgs before pack, see chocolatey/choco#2076
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCakeIsNaOH committed Jan 28, 2021
1 parent f76208a commit c78fb12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AU/Public/Update-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ function Update-Package {
update_files
if (Test-Path Function:\au_AfterUpdate) { 'Running au_AfterUpdate' | result; au_AfterUpdate $package | result }

Get-Item *.nupkg | Remove-Item -ea 0
choco pack --limit-output | result
if ($LastExitCode -ne 0) { throw "Choco pack failed with exit code $LastExitCode" }
} finally {
Expand Down

0 comments on commit c78fb12

Please sign in to comment.