mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-16 06:46:48 +00:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
################################################################################
|
||||
## File: Validate-PowershellCore.ps1
|
||||
## Desc: Validate Powershell Core
|
||||
################################################################################
|
||||
|
||||
if (Get-Command -Name 'pwsh')
|
||||
{
|
||||
Write-Host "pwsh is on PATH"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "pwsh is not on PATH"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Powershell Core"
|
||||
|
||||
if(($(pwsh --version) | Out-String) -match 'PowerShell (?<version>.*)')
|
||||
{
|
||||
$PowershellVersion = $Matches.version
|
||||
}
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $PowershellVersion<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
################################################################################
|
||||
## File: Validate-PowershellCore.ps1
|
||||
## Desc: Validate Powershell Core
|
||||
################################################################################
|
||||
|
||||
if (Get-Command -Name 'pwsh')
|
||||
{
|
||||
Write-Host "pwsh is on PATH"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "pwsh is not on PATH"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Powershell Core"
|
||||
|
||||
if(($(pwsh --version) | Out-String) -match 'PowerShell (?<version>.*)')
|
||||
{
|
||||
$PowershellVersion = $Matches.version
|
||||
}
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $PowershellVersion<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user