From e1f25cf2c59ec33909a7d1bde2b56a3852e85c87 Mon Sep 17 00:00:00 2001 From: Kowshik Jois Date: Tue, 25 Jun 2024 19:40:24 +0530 Subject: [PATCH] Fix for commented VERSION key in /etc/os-release file (#333) Signed-off-by: Kowshik Jois B S --- lib/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helper.py b/lib/helper.py index 6270d3d..33d197d 100644 --- a/lib/helper.py +++ b/lib/helper.py @@ -76,7 +76,7 @@ def get_dist(): dist = re.findall("ID=(\\S+)", line)[0] except: pass - elif line.startswith("VERSION="): + elif line.__contains__("VERSION="): try: line = line.replace('"', '') dist_ver = re.findall("VERSION=(\\S+)", line)[0].lower().replace("-", ".")