From 0f0fb51d453506bc160a6c030fd8e1a909f72f3e Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 17 Jun 2024 22:01:28 +0100 Subject: Singular/plural --- 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 7c09f07..cdac7e6 100755 --- a/i3/check-updates.py +++ b/i3/check-updates.py @@ -29,7 +29,7 @@ if __name__ == "__main__": if pending == 0: result = "" else: - result = f"{pending} updates" + result = f"{pending} update" + ("s" if pending > 1 else "") with open(os.path.join(pathlib.Path.home(), ".pending_updates"), "wt") as fd: fd.write(result) -- cgit v1.2.3