Skip to content
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

added emptyepsilon #1301

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

gfactor
Copy link
Contributor

@gfactor gfactor commented Jan 16, 2025

Added EmptyEpsilon
Fixes #1300

Please take a close look at how the VERSION_PUBLISHED variable is calculated (line 6 of the emptyepsilon file). I'm unsure if this is the best or most clear way to do it.

@silentJET85
Copy link
Contributor

Looks fine to me. If you're concerned about effeciency, it could also be done with a single sed command.
For example: VERSION_PUBLISHED="$(sed -E 's|.*download/EE-([^/]*).*|\1|' <<< "${URL}")"
The speed difference is negligible, though.

get_github_releases "daid/EmptyEpsilon" "latest"
if [ "${ACTION}" != prettylist ]; then
URL="$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)"
VERSION_PUBLISHED="$(cut -d'-' -f2 <<< "${URL}" | cut -d'/' -f1)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is OK. However there may be an issue with how they handle their versioning:
Currently this ends up with

  Installed:	2024.12.8
  Published:	2024.12.08

which is actually probably OK as .09 will be seen as "higher" than .8, but the inconsistency is a little worrying...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App Request: EmptyEpsilon
3 participants