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

add Joplin #1325

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add Joplin #1325

wants to merge 3 commits into from

Conversation

zero77
Copy link
Contributor

@zero77 zero77 commented Feb 16, 2025

New package joplin
this PR relates to #1303

Copy link
Member

@philclifford philclifford left a comment

Choose a reason for hiding this comment

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

This doesn't actually work:

  [!] ERROR! Missing required information of github package joplin:
URL=
VERSION_PUBLISHED=

The CI install test "passes" but reading the log it should fail so is itself sadly broken.

Also please note the newer template in EXTREPO.md and recent package definitions and adopt the pattern of "grep -m1 " to avoid an extra head and "<<< ${URL}" to avoid unwanted extra echoes.

DEFVER=1
get_github_releases "laurent22/joplin" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v '.md5' | head -n1 | cut -d'"' -f4)"
Copy link
Member

@philclifford philclifford Feb 22, 2025

Choose a reason for hiding this comment

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

Suggested change
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v '.md5' | head -n1 | cut -d'"' -f4)"
URL=$(grep -m1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)

get_github_releases "laurent22/joplin" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v '.md5' | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed "s/v//")"
VERSION_PUBLISHED=$( cut -d'/' -f8 <<<"${URL/v/}")

Co-authored-by: Phil Clifford <[email protected]>
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.

2 participants