Fix typo in has_update ; Add more in README Usage
This commit is contained in:
parent
abafbf3d55
commit
8f30c9ed30
|
@ -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
|
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.
|
no argument, *has_update* ouputs a message ONLY if an update is available.
|
||||||
|
|
||||||
|
```
|
||||||
|
cd /home/mastodon/live
|
||||||
|
/srv/toot/tools/has_update
|
||||||
|
```
|
||||||
|
|
|
@ -104,7 +104,7 @@ installed_version = get_installed_release()
|
||||||
# With -v argument, show both versions
|
# With -v argument, show both versions
|
||||||
if '-v' in sys.argv:
|
if '-v' in sys.argv:
|
||||||
print(f"{owner}:")
|
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
|
# A new version is available
|
||||||
elif available_version != installed_version:
|
elif available_version != installed_version:
|
||||||
|
|
Loading…
Reference in New Issue