mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
remove code duplicate for Get-PHPVersio (#4231)
This commit is contained in:
@@ -151,11 +151,6 @@ function Build-OSInfoSection {
|
|||||||
return $output
|
return $output
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-PHPVersion {
|
|
||||||
$PHPVersion = Run-Command "php --version" | Select-Object -First 1 | Take-Part -Part 0,1
|
|
||||||
return $PHPVersion
|
|
||||||
}
|
|
||||||
|
|
||||||
function Get-MSBuildVersion {
|
function Get-MSBuildVersion {
|
||||||
$msbuildVersion = msbuild -version | Select-Object -Last 1
|
$msbuildVersion = msbuild -version | Select-Object -Last 1
|
||||||
$result = Select-String -Path (Get-Command msbuild).Source -Pattern "msbuild"
|
$result = Select-String -Path (Get-Command msbuild).Source -Pattern "msbuild"
|
||||||
|
|||||||
Reference in New Issue
Block a user