From c9f53c9e1e450e8eff0ea3128f99f9246415cce7 Mon Sep 17 00:00:00 2001 From: Miodrag Milic Date: Thu, 27 Oct 2016 10:09:01 +0200 Subject: [PATCH] force was not triggered without explicit version --- update_all.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update_all.ps1 b/update_all.ps1 index 8022536..0a13f43 100644 --- a/update_all.ps1 +++ b/update_all.ps1 @@ -54,9 +54,9 @@ $Options = [ordered]@{ ForcedPackages = $ForcedPackages -split ' ' BeforeEach = { param($PackageName, $Options ) - $p = $Options.ForcedPackages | ? { $_ -match "^${PackageName}(?:\:(.+))$" } + $p = $Options.ForcedPackages | ? { $_ -match "^${PackageName}(?:\:(.+))*$" } if (!$p) { return } - + $global:au_Force = $true $global:au_Version = ($p -split ':')[1] } @@ -64,7 +64,7 @@ $Options = [ordered]@{ if ($ForcedPackages) { Write-Host "FORCED PACKAGES: $ForcedPackages" } $global:au_Root = $Root #Path to the AU packages -$info = updateall -Name $Name -Options $Options +$global:info = updateall -Name $Name -Options $Options #Uncomment to fail the build on AppVeyor on any package error -#if ($info.error_count.total) { throw 'Errors during update' } +#if ($global:info.error_count.total) { throw 'Errors during update' }