Skip to content

Commit

Permalink
Move Write-Diagnostic function dec up higher so it's accessible for t…
Browse files Browse the repository at this point in the history
…he branch on tag code
  • Loading branch information
amaitland committed Oct 6, 2017
1 parent ec3c823 commit d5f486a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ $Cef32vcx = Join-Path (Join-Path $Cef32 'libcef_dll_wrapper') 'libcef_dll_wrappe
$Cef64 = Join-Path $WorkingDir 'cef_binary_3.y.z_windows64'
$Cef64vcx = Join-Path (Join-Path $Cef64 'libcef_dll_wrapper') 'libcef_dll_wrapper.vcxproj'

function Write-Diagnostic
{
param(
[Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]
[string] $Message
)

Write-Host
Write-Host $Message -ForegroundColor Green
Write-Host
}

# Set CefVersion based on tag name - must start with leading "v" e.g. v3.3163.1663.g416ffeb
if ($env:APPVEYOR_REPO_TAG -eq "True")
{
Expand Down Expand Up @@ -66,18 +78,6 @@ function Invoke-BatchFile
Remove-Item $batFile
}

function Write-Diagnostic
{
param(
[Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]
[string] $Message
)

Write-Host
Write-Host $Message -ForegroundColor Green
Write-Host
}

function Die
{
param(
Expand Down

0 comments on commit d5f486a

Please sign in to comment.