Files
runner-images/images/win/scripts/Installers/Validate-Packer.ps1
2020-03-05 10:37:23 +03:00

25 lines
606 B
PowerShell

################################################################################
## File: Validate-Packer.ps1
## Desc: Validate Packer
################################################################################
if (Get-Command -Name 'packer')
{
Write-Host "Packer is on path"
}
else
{
Write-Host 'Packer is not on path'
exit 1
}
# Adding description of the software to Markdown
$SoftwareName = "Packer"
$PackerVersion = packer --version
$Description = @"
_Version:_ $PackerVersion<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description