From 8f30c9ed30fab733bd8917519347607c55ee492b Mon Sep 17 00:00:00 2001 From: echolib Date: Wed, 18 Sep 2024 11:23:41 +0200 Subject: [PATCH] Fix typo in has_update ; Add more in README Usage --- tools/README.md | 4 ++++ tools/has_update | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/README.md b/tools/README.md index ed71781..c0232ad 100644 --- a/tools/README.md +++ b/tools/README.md @@ -37,3 +37,7 @@ project. You can use it with an external script in a crontab that checks the ouput of *has_update*. Do not forget, in that case, to not give argument. With no argument, *has_update* ouputs a message ONLY if an update is available. +``` +cd /home/mastodon/live +/srv/toot/tools/has_update +``` diff --git a/tools/has_update b/tools/has_update index 5e396a2..b2dcdf4 100644 --- a/tools/has_update +++ b/tools/has_update @@ -104,7 +104,7 @@ installed_version = get_installed_release() # With -v argument, show both versions if '-v' in sys.argv: print(f"{owner}:") - print(f"- Available: {available_version}\n-Installed: {installed_version}") + print(f"- Available: {available_version}\n- Installed: {installed_version}") # A new version is available elif available_version != installed_version: