mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 02:20:20 +08:00
Add blackhole audiodevice for macOS Big sur, add sox and Switchaudio-osx versions to the docs (#3542)
This commit is contained in:
@@ -49,3 +49,14 @@ function Get-PathWithLink {
|
||||
$link = Get-LinkTarget($inputPath)
|
||||
return "${inputPath}${link}"
|
||||
}
|
||||
|
||||
function Get-BrewPackageVersion {
|
||||
param (
|
||||
[string] $CommandName
|
||||
)
|
||||
|
||||
(Get-LinkTarget (Get-Command $CommandName).Source | Out-String) -match "(?<version>(\d+.){2}\d+)" | Out-Null
|
||||
$packageVersion = $Matches.Version
|
||||
|
||||
return $packageVersion
|
||||
}
|
||||
Reference in New Issue
Block a user