mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
Rework apt-fast installation to get rid of apt repo (#3336)
* select-xamarin-sdk-v2 * Update select-xamarin-sdk-v2.sh * change warning message * check existed framework version * check framework version review points * Update apt.sh * Update SoftwareReport.Tools.psm1 * remove a commented code * Fixed review points * return unattended-upgrades * Fixed a viewing version * add links for apt fast * apt fast version * apt-fast * final check version * add which apt-fast
This commit is contained in:
@@ -4,7 +4,9 @@ function Get-AnsibleVersion {
|
||||
}
|
||||
|
||||
function Get-AptFastVersion {
|
||||
$aptFastVersion = (dpkg-query --showformat='${Version}' --show apt-fast).Split('-')[0]
|
||||
$versionFileContent = Get-Content (which apt-fast) -Raw
|
||||
$match = [Regex]::Match($versionFileContent, '# apt-fast v(.+)\n')
|
||||
$aptFastVersion = $match.Groups[1].Value
|
||||
return "apt-fast $aptFastVersion"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user