From d7ed4f648fce54218288e2cb0f2ae72ee88047d4 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Wed, 2 Oct 2024 20:29:12 +0100 Subject: [PATCH] fix(whalebird): revert breakage by 1174 Replace fix for upstream release rename that will still work if they change back and correct derivation of versioning that were lost in merge of #1174. Also retains and extends grep improvements from #1174 and removes a surplus head Supcercedes and closes Closes #1177 Co-authored-by: Ross Smith II --- 01-main/packages/whalebird | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01-main/packages/whalebird b/01-main/packages/whalebird index 2073357f..54d69afc 100644 --- a/01-main/packages/whalebird +++ b/01-main/packages/whalebird @@ -2,8 +2,8 @@ DEFVER=1 ARCHS_SUPPORTED="amd64" get_github_releases "h3poteto/whalebird-desktop" if [ "${ACTION}" != "prettylist" ]; then - URL="$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | grep -E -v '(alpha|beta)' | head -n1 | cut -d'"' -f4)" - VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8)" + URL="$(grep "browser_download_url.*64\.deb\"" "${CACHE_FILE}" | grep -m 1 -E -v '(alpha|beta|-rc)\.' | cut -d'"' -f4)" + VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)" fi PRETTY_NAME="Whalebird" WEBSITE="https://whalebird.social/"