aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-06-17 22:01:28 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-06-17 22:01:28 +0100
commit0f0fb51d453506bc160a6c030fd8e1a909f72f3e (patch)
tree5686ca2f1c96b50a2ff80236c756ab524f7c625f
parent2121d3b4569d7bf138b66dc372f35840805589cf (diff)
downloaddotnvim-0f0fb51d453506bc160a6c030fd8e1a909f72f3e.tar.gz
dotnvim-0f0fb51d453506bc160a6c030fd8e1a909f72f3e.zip
Singular/plural
-rwxr-xr-xi3/check-updates.py2
1 files changed, 1 insertions, 1 deletions
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)