Finish sentences with a period

This commit is contained in:
Wojciech Kozlowski 2023-11-12 09:19:21 +01:00
parent 2e6f0c22ea
commit aeef59bbf3

View File

@ -67,8 +67,8 @@ if __name__ == "__main__":
updated.add(image) updated.add(image)
if updated: if updated:
print(f"The following images have been updated: {', '.join(updated)}") print(f"The following images have been updated: {', '.join(updated)}.")
restart = functools.reduce(lambda x, y: x + y, [units[image] for image in updated]) restart = functools.reduce(lambda x, y: x + y, [units[image] for image in updated])
print(f"The following units will be restarted: {', '.join(restart)}") print(f"The following units will be restarted: {', '.join(restart)}.")
subprocess.run(["systemctl", "--user", "restart"] + restart, check=True) subprocess.run(["systemctl", "--user", "restart"] + restart, check=True)