From 829af5643a599789be1b86e3ec45cbb00b8aa3f0 Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Sat, 15 Jul 2023 17:43:09 -0600 Subject: [PATCH] fix: Check if the url already contains the protocol during update checks --- src/ublue_update/update_checks/system.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ublue_update/update_checks/system.py b/src/ublue_update/update_checks/system.py index bce262f..ad879f0 100644 --- a/src/ublue_update/update_checks/system.py +++ b/src/ublue_update/update_checks/system.py @@ -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"""