From 79a72ddb1f960239c26f307611a0af5bc6e56800 Mon Sep 17 00:00:00 2001 From: KrauTech Date: Sat, 14 Dec 2024 00:03:00 +1100 Subject: [PATCH] [FirmwareFlasher] Repository would error when case-sensitive - 0.0.4 (#197) * make lowercase * increment --- scripts/firmware.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/firmware.py b/scripts/firmware.py index 65e4b2d..da24330 100755 --- a/scripts/firmware.py +++ b/scripts/firmware.py @@ -28,7 +28,7 @@ ClassVar, ) -FLASHER_VERSION: str = "0.0.3" +FLASHER_VERSION: str = "0.0.4" PAGE_WIDTH: int = 89 # Default global width @@ -2243,8 +2243,8 @@ def verify_repository(self) -> bool: capture_output=True, check=True, ) - origin_url = result.stdout.strip() - if origin_url != "https://github.com/arksine/katapult": + origin_url = result.stdout.strip().lower() + if origin_url != "https://github.com/arksine/katapult".lower(): Utils.error_msg(f"Unexpected repository URL: {origin_url}") return False except subprocess.CalledProcessError as e: