diff --git a/AU/Public/Push-Package.ps1 b/AU/Public/Push-Package.ps1 index 20ea16e7..070cc342 100644 --- a/AU/Public/Push-Package.ps1 +++ b/AU/Public/Push-Package.ps1 @@ -17,8 +17,8 @@ function Push-Package() { $package = ls *.nupkg | sort -Property CreationTime -Descending | select -First 1 if (!$package) { throw 'There is no nupkg file in the directory'} if ($api_key) { - cpush $package.Name --api-key $api_key --source https://push.chocolatey.org + cpush $package.Name --limit-output --api-key $api_key --source https://push.chocolatey.org } else { - cpush $package.Name --source https://push.chocolatey.org + cpush $package.Name --limit-output --source https://push.chocolatey.org } } diff --git a/tests/Update-Package.Tests.ps1 b/tests/Update-Package.Tests.ps1 index 30749df8..5e70aa9d 100644 --- a/tests/Update-Package.Tests.ps1 +++ b/tests/Update-Package.Tests.ps1 @@ -58,7 +58,7 @@ Describe 'Update-Package' -Tag update { } It 'can backup and restore using WhatIf' { - get_latest + get_latest -Version 1.2.3 $global:au_Force = $true; $global:au_Version = '1.0' $global:au_WhatIf = $true $res = update -ChecksumFor 32 6> $null