From fd5f4450eff792ec44e52b43dfceb2c8d91d5a43 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 22 Mar 2024 07:45:18 +0000 Subject: Fix parsin the output --- i3/check-updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i3') diff --git a/i3/check-updates.py b/i3/check-updates.py index 429dde4..7c09f07 100755 --- a/i3/check-updates.py +++ b/i3/check-updates.py @@ -20,7 +20,7 @@ CMD = ["apt", "list", "--upgradeable"] def check_updates(): output = str(subprocess.check_output(CMD, stderr=subprocess.DEVNULL)) - output = output.splitlines() + output = output.split("\\n") return len(output[1:-1]) -- cgit v1.2.3