Files
runner-images-sangeeth/images/win/scripts/Installers/Validate-Packer.ps1
T

25 lines
624 B
PowerShell
Raw Normal View History

################################################################################
## 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).Split("")
$Description = @"
_Version:_ $PackerVersion.Item(1)<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description