From ed41c20f639dcdc9e06fcab1f429d1d6dd478c43 Mon Sep 17 00:00:00 2001 From: jhoneill Date: Mon, 9 Dec 2019 00:42:44 +0000 Subject: [PATCH] Finalize Checks for failing manfiest --- CI/PS-CI.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CI/PS-CI.ps1 b/CI/PS-CI.ps1 index 5994068..a944158 100644 --- a/CI/PS-CI.ps1 +++ b/CI/PS-CI.ps1 @@ -160,7 +160,7 @@ try { Copy-Item -Path $file -Destination $dest -Force -Recurse -Verbose } - if ((Test-Path -PathType Container "mdHelp") -and -not $true) { + if ((Test-Path -PathType Container "mdHelp") -and -not $SkipHelp) { if (-not (Get-Module -ListAvailable platyPS)) { 'Installing Platyps to build help files' Install-Module -Name platyPS -Force -SkipPublisherCheck @@ -175,10 +175,11 @@ try { $env:PSNewBuildModule = $ModulePath } catch { - if ($PSScriptRoot) { Pop-Location } - throw ('Failed installing module "{0}". Error: "{1}" in Line {2}' -f $ModuleName, $_, $_.InvocationInfo.ScriptLineNumber) + if ($PSScriptRoot) { Pop-Location } + throw ('Failed installing module "{0}". Error: "{1}" in Line {2}' -f $ModuleName, $_, $_.InvocationInfo.ScriptLineNumber) } finally { + if (-not $outputFile -or -not (Test-Path $outputFile)) { throw "Failed to create module"} } #endregion