[ubuntu] Refactor Toolset functions (#8948)

This commit is contained in:
Shamil Mubarakshin
2023-12-06 14:00:26 +01:00
committed by GitHub
parent a9bc069a35
commit 0ade9f36d3
4 changed files with 15 additions and 41 deletions

View File

@@ -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)"
}