Skip to content
Permalink
Browse files

because we need to do the same for this script - It's silly ...... bu…

… it works
  • Loading branch information
SQLDBAWithABeard committed Jul 2, 2019
1 parent 0d15b66 commit 5072c7410bd53d04d3d7174c4e183cb1682af7ca
Showing with 14 additions and 5 deletions.
  1. +14 −5 builddocs.ps1
@@ -62,15 +62,24 @@ catch {
Write-Error "Failed to add $pwd to PSModulePAth - $_"
}
try {
Write-Output "Installing dbachecks"
Import-Module .\dbachecks.psd1
Write-Output "Installed dbachecks"
Write-Output "Importing dbachecks"
Import-Module .\dbachecks.psd1 -verbose
Write-Output "Imported dbachecks"

}
catch {
Write-Error "Failed to Install dbachecks $($_)"
try {
Write-Output "Importing dbachecks again to get around the stupid failure for dbatools"
Import-Module .\dbachecks.psd1 -verbose
Write-Output "Imported dbachecks - again to get around the stupid failure for dbatools"
}
catch {
Write-Error "Failed to Install dbachecks $($_)"
}

}


$ProjectRoot = Get-Location
$ModuleName = 'dbachecks'
$BuildDate = Get-Date -uFormat '%Y-%m-%d'
@@ -83,7 +92,7 @@ $YMLtext = (Get-Content "$ProjectRoot\header-mkdocs.yml") -join "`n"
$YMLtext = "$YMLtext`n"

$parameters = @{
Path = $ReleaseNotes
Path = $ReleaseNotes
ErrorAction = 'SilentlyContinue'
}
$ReleaseText = (Get-Content @parameters) -join "`n"

0 comments on commit 5072c74

Please sign in to comment.
You can’t perform that action at this time.