Skip to content

Commit

Permalink
fix error when $null value is added to the $Latest
Browse files Browse the repository at this point in the history
  • Loading branch information
majkinetor committed Dec 1, 2017
1 parent 4d16d1a commit 033dc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AU/Public/Update-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function Update-Package {
function update_files( [switch]$SkipNuspecFile )
{
'Updating files' | result
' $Latest data:' | result; ($global:Latest.keys | sort | % { " {0,-25} {1,-12} {2}" -f $_, "($($global:Latest[$_].GetType().Name))", $global:Latest[$_] }) | result
' $Latest data:' | result; ($global:Latest.keys | sort | % { $v=$global:Latest[$_]; " {0,-25} {1,-12} {2}" -f $_, "($( if ($v) { $v.GetType().Name } ))", $v }) | result

if (!$SkipNuspecFile) {
" $(Split-Path $package.NuspecPath -Leaf)" | result
Expand Down

0 comments on commit 033dc47

Please sign in to comment.