mirror of https://github.com/tteck/Proxmox.git
Update haos-vm.sh
This commit is contained in:
parent
48222394aa
commit
c6d525fa42
|
@ -122,16 +122,13 @@ r = requests.get(url).json()
|
||||||
if "message" in r:
|
if "message" in r:
|
||||||
exit()
|
exit()
|
||||||
for release in r:
|
for release in r:
|
||||||
if not release['prerelease']:
|
if release["prerelease"]:
|
||||||
continue
|
continue
|
||||||
for asset in release['assets']:
|
for asset in release["assets"]:
|
||||||
if asset['name'].endswith('$RELEASE_TYPE'):
|
if asset["name"].find("$RELEASE_TYPE") != -1:
|
||||||
global image_url
|
image_url = asset["browser_download_url"]
|
||||||
image_url = asset['browser_download_url']
|
|
||||||
break
|
|
||||||
if 'image_url' in globals():
|
|
||||||
print(image_url)
|
print(image_url)
|
||||||
break
|
exit()
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
if [ -z "$URL" ]; then
|
if [ -z "$URL" ]; then
|
||||||
|
|
Loading…
Reference in New Issue