Update haos-vm.sh

pull/152/head
tteckster 3 years ago committed by GitHub
parent 48222394aa
commit c6d525fa42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,16 +122,13 @@ r = requests.get(url).json()
if "message" in r:
exit()
for release in r:
if not release['prerelease']:
continue
for asset in release['assets']:
if asset['name'].endswith('$RELEASE_TYPE'):
global image_url
image_url = asset['browser_download_url']
break
if 'image_url' in globals():
print(image_url)
break
if release["prerelease"]:
continue
for asset in release["assets"]:
if asset["name"].find("$RELEASE_TYPE") != -1:
image_url = asset["browser_download_url"]
print(image_url)
exit()
EOF
)
if [ -z "$URL" ]; then

Loading…
Cancel
Save

Powered by BW's shoe-string budget.