Finalize Checks for failing manfiest

This commit is contained in:
jhoneill
2019-12-09 00:42:44 +00:00
parent 28e3fe1cd8
commit ed41c20f63

View File

@@ -160,7 +160,7 @@ try {
Copy-Item -Path $file -Destination $dest -Force -Recurse -Verbose 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)) { if (-not (Get-Module -ListAvailable platyPS)) {
'Installing Platyps to build help files' 'Installing Platyps to build help files'
Install-Module -Name platyPS -Force -SkipPublisherCheck Install-Module -Name platyPS -Force -SkipPublisherCheck
@@ -179,6 +179,7 @@ catch {
throw ('Failed installing module "{0}". Error: "{1}" in Line {2}' -f $ModuleName, $_, $_.InvocationInfo.ScriptLineNumber) throw ('Failed installing module "{0}". Error: "{1}" in Line {2}' -f $ModuleName, $_, $_.InvocationInfo.ScriptLineNumber)
} }
finally { finally {
if (-not $outputFile -or -not (Test-Path $outputFile)) { throw "Failed to create module"}
} }
#endregion #endregion