mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-24 14:01:56 +00:00
Update haos-vm.sh
This commit is contained in:
parent
154364de86
commit
330d42aee8
@ -122,13 +122,16 @@ r = requests.get(url).json()
|
||||
if "message" in r:
|
||||
exit()
|
||||
for release in r:
|
||||
if release["prerelease"]:
|
||||
continue
|
||||
if asset in release["assets"]:
|
||||
if asset["name"].find("$RELEASE_TYPE") != -1:
|
||||
image_url = asset["browser_download_url"]
|
||||
print(image_url)
|
||||
exit()
|
||||
if not release['prerelease']:
|
||||
continue
|
||||
for asset in release['assets']:
|
||||
if asset['name'].endswith('$RELEASE_EXT'):
|
||||
global image_url
|
||||
image_url = asset['browser_download_url']
|
||||
break
|
||||
if 'image_url' in globals():
|
||||
print(image_url)
|
||||
break
|
||||
EOF
|
||||
)
|
||||
if [ -z "$URL" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user