-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoupdate oiejq #222
Autoupdate oiejq #222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firstly, maybe we could future-proof this somewhat and also account for updates to the oiejq script itself?
Comparing hashlib.md5(open(path,'rb').read()).hexdigest()
agains a saved md5 checksum should suffice.
Secondly, when oiejq is updated the user sees the following:
`oiejq` in `~/.local/bin/` not found, installing now...
`oiejq` was successfully installed.
I think that this is a bit misleading and may confuse the user.
If we don't want to properly differentiate between installing and updating oiejq then I'd suggest outputting sth like
Up to date `oiejq` in `~/.local/bin/` not found, installing new version...
Does are good ideas, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a few lines to test "updating" the oiejq script after e.g. appending '\n' to it?
No description provided.