mirror of
https://github.com/actions/runner-images.git
synced 2025-12-28 04:38:53 +08:00
[ubuntu] Refactor Toolset functions (#8948)
This commit is contained in:
committed by
GitHub
parent
a9bc069a35
commit
0ade9f36d3
@@ -59,13 +59,10 @@ verlte() {
|
||||
[ "$1" = "$sortedVersion" ]
|
||||
}
|
||||
|
||||
get_toolset_path() {
|
||||
echo "/imagegeneration/installers/toolset.json"
|
||||
}
|
||||
|
||||
get_toolset_value() {
|
||||
local toolset_path=$(get_toolset_path)
|
||||
local toolset_path="/imagegeneration/installers/toolset.json"
|
||||
local query=$1
|
||||
|
||||
echo "$(jq -r "$query" $toolset_path)"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user