Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Use last returned value of au_GetLatest instead of everything #28
Browse files Browse the repository at this point in the history
  • Loading branch information
majkinetor committed Oct 7, 2016
1 parent 0f0359b commit 529254f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions AU/Public/Update-Package.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Author: Miodrag Milic <[email protected]>
# Last Change: 28-Sep-2016.
# Last Change: 07-Oct-2016.

<#
.SYNOPSIS
Expand Down Expand Up @@ -316,7 +316,7 @@ function Update-Package {
$module = $MyInvocation.MyCommand.ScriptBlock.Module
"{0} - checking updates using {1} version {2}" -f $package.Name, $module.Name, $module.Version | result
try {
$res = au_GetLatest
$res = au_GetLatest | select -Last 1
if ($res -eq $null) { throw 'au_GetLatest returned nothing' }

$res_type = $res.GetType()
Expand Down
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

## TODO

- `WhatIf` parameter (#30)
- `WhatIf` parameter ([#30](https://github.com/majkinetor/au/issues/30)).

## Next

- `Update-Package` uses last returned value of `au_GetLatest` instead of everything ([#28](https://github.com/majkinetor/au/issues/28)).
- `Test-Package` new option `Parameters` to support testing packages with custom parameters.

### Bugfixes

- Test-Package - Uninstall test fixed
- Git error - _A positional parameter cannot be found_ error fixed ([#31](https://github.com/majkinetor/au/issues/31))
- Test-Package - Uninstall test fixed.
- Git error - _A positional parameter cannot be found_ error fixed ([#31](https://github.com/majkinetor/au/issues/31)).

## 2016.9.25

Expand Down

0 comments on commit 529254f

Please sign in to comment.