mirror of
https://github.com/containers/podman.git
synced 2025-07-01 16:17:06 +08:00
Merge pull request #22248 from edsantiago/windows-perl-is-in-vms
Windows: clean up temporary perl install
This commit is contained in:
@ -40,22 +40,11 @@ if ($Env:CI -eq "true") {
|
||||
Remove-Item Env:\CIRRUS_PR_BODY -ErrorAction:Ignore
|
||||
}
|
||||
|
||||
function Install-Perl-If-Required {
|
||||
if (-not (Get-Command perl -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "`nInstalling Perl as it is required to use logformatter"
|
||||
choco install --no-progress --confirm --acceptlicense --nocolor StrawberryPerl
|
||||
Write-Host "`nAdd perl to the PATH"
|
||||
Set-Item "Env:PATH" "$Env:PATH;C:\Strawberry\perl\bin"
|
||||
}
|
||||
}
|
||||
|
||||
function Invoke-Logformatter {
|
||||
param (
|
||||
[Collections.ArrayList] $unformattedLog
|
||||
)
|
||||
|
||||
Install-Perl-If-Required
|
||||
|
||||
Write-Host "Invoking Logformatter"
|
||||
$logFormatterInput = @('/define.gitCommit=' + $(git rev-parse HEAD)) + $unformattedLog
|
||||
$logformatterPath = "$PSScriptRoot\logformatter"
|
||||
|
Reference in New Issue
Block a user