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