This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use last returned value of au_GetLatest instead of everything #28
- Loading branch information
1 parent
0f0359b
commit 529254f
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters