fix yq invocation on android repo xml (#6563)

This commit is contained in:
Aleksandr Chebotov
2022-11-14 12:51:35 +01:00
committed by GitHub
parent 3fbd7f61b6
commit a642059809

View File

@@ -41,7 +41,7 @@ if [[ $cmdlineToolsVersion == "latest" ]]; then
download_with_retries $repositoryXmlUrl "/tmp" "repository2-1.xml" download_with_retries $repositoryXmlUrl "/tmp" "repository2-1.xml"
cmdlineToolsVersion=$( cmdlineToolsVersion=$(
yq -p=xml \ yq -p=xml \
'.sdk-repository.remotePackage[] | select(."+path" == "cmdline-tools;latest").archives.archive[].complete.url | select(contains("commandlinetools-mac"))' \ '.sdk-repository.remotePackage[] | select(."+@path" == "cmdline-tools;latest").archives.archive[].complete.url | select(contains("commandlinetools-mac"))' \
/tmp/repository2-1.xml /tmp/repository2-1.xml
) )