diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-06-17 22:01:28 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-06-17 22:01:28 +0100 |
commit | 0f0fb51d453506bc160a6c030fd8e1a909f72f3e (patch) | |
tree | 5686ca2f1c96b50a2ff80236c756ab524f7c625f | |
parent | 2121d3b4569d7bf138b66dc372f35840805589cf (diff) | |
download | dotnvim-0f0fb51d453506bc160a6c030fd8e1a909f72f3e.tar.gz dotnvim-0f0fb51d453506bc160a6c030fd8e1a909f72f3e.zip |
Singular/plural
-rwxr-xr-x | i3/check-updates.py | 2 |
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) |