Merge pull request #208300 from hadilq/androidenv/fix-system-image-download-url-for-default-type

This commit is contained in:
Artturi 2022-12-30 15:48:07 +02:00 committed by GitHub
commit 338097c04c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,9 @@ end
# Returns a system image URL for a given system image name.
def image_url value, dir
if dir == "default"
dir = "android"
end
if value && value.start_with?('http')
value
elsif value