mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Revert "Another mop up commit to add missing changes from the last mop-up."
This reverts commit 1dcd276b1e.
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
################################################################################
|
||||
## File: Validate-AzureCli.ps1
|
||||
## Desc: Validate Azure CLI
|
||||
################################################################################
|
||||
|
||||
if(Get-Command -Name 'az')
|
||||
{
|
||||
Write-Host "Azure Cli $(az --version) on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Error "Azure Cli not on path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$azureCliVersion = az -v | findstr azure-cli
|
||||
$azureCliVersion = $azureCliVersion.trim().Substring("azure-cli".Length).trim()
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Azure CLI"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $azureCliVersion
|
||||
_Environment:_
|
||||
* PATH: contains location of az.cmd
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
################################################################################
|
||||
## File: Validate-AzureCli.ps1
|
||||
## Desc: Validate Azure CLI
|
||||
################################################################################
|
||||
|
||||
if(Get-Command -Name 'az')
|
||||
{
|
||||
Write-Host "Azure Cli $(az --version) on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Error "Azure Cli not on path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$azureCliVersion = az -v | findstr azure-cli
|
||||
$azureCliVersion = $azureCliVersion.trim().Substring("azure-cli".Length).trim()
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Azure CLI"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $azureCliVersion
|
||||
_Environment:_
|
||||
* PATH: contains location of az.cmd
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user