mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Cleanup old markdown documenation approach (#979)
This commit is contained in:
committed by
GitHub
parent
8c8f384a61
commit
43e26fa96b
@@ -5,7 +5,7 @@
|
||||
|
||||
if (Get-Command -Name 'openssl')
|
||||
{
|
||||
Write-Host "openssl on path"
|
||||
Write-Host 'openssl on path'
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -13,17 +13,3 @@ else
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "OpenSSL"
|
||||
|
||||
$versions = Get-Command openssl -All
|
||||
foreach ($version in $versions)
|
||||
{
|
||||
$command = "& `"$($version.Source)`" version"
|
||||
if ( $(Invoke-Expression -Command $command) -match '\d+\.\d+\.\d+\w?' )
|
||||
{
|
||||
$Description += "_Version:_ $($Matches[0]) at $($version.Source)<br/>"
|
||||
}
|
||||
}
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user