diff --git a/AU/Public/Update-Package.ps1 b/AU/Public/Update-Package.ps1 index 3cedfb02..2a3daa6e 100644 --- a/AU/Public/Update-Package.ps1 +++ b/AU/Public/Update-Package.ps1 @@ -1,5 +1,5 @@ # Author: Miodrag Milic -# Last Change: 28-Sep-2016. +# Last Change: 07-Oct-2016. <# .SYNOPSIS @@ -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() diff --git a/CHANGELOG.md b/CHANGELOG.md index dec0b851..dcda43bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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