Skip to content

Commit

Permalink
fix: Check if the url already contains the protocol during update che…
Browse files Browse the repository at this point in the history
…cks (#44)
  • Loading branch information
gerblesh authored Jul 15, 2023
2 parents cbbc773 + 829af56 commit 8c448c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ublue_update/update_checks/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ def system_update_check():
tag = current_image[2]

"""Pull digest from latest image"""
latest_image = protocol + url + ":" + tag
if protocol in url:
latest_image = url + ":" + tag
else:
latest_image = protocol + url + ":" + tag
latest_digest = skopeo_inspect(latest_image)

"""Compare current digest to latest digest"""
Expand Down

0 comments on commit 8c448c4

Please sign in to comment.