diff --git a/01-main/packages/openrgb b/01-main/packages/openrgb index d33707b03..01fac15ac 100644 --- a/01-main/packages/openrgb +++ b/01-main/packages/openrgb @@ -5,13 +5,13 @@ get_website "https://openrgb.org/releases.html" if [ "${ACTION}" != "prettylist" ]; then case "${UPSTREAM_CODENAME}" in buster|focal) - URL="https://openrgb.org$(grep -o "\"/up_/up_/static/releases/release_[^\"]*${HOST_ARCH}[^\"]*buster[^\"]*\.deb\"" "${CACHE_FILE}" | sort --version-sort | tail -n1 | cut -d "\"" -f 2)" + URL="https://openrgb.org/$( grep -o -E "/releases/release_[[:digit:]]+\.[[:digit:]]+/openrgb_[[:digit:]]+\.[[:digit:]]_${HOST_ARCH}_buster_[[:digit:]]+\.deb" "${CACHE_FILE}" )" ;; *) - URL="https://openrgb.org$(grep -o "\"/up_/up_/static/releases/release_[^\"]*${HOST_ARCH}[^\"]*bullseye[^\"]*\.deb\"" "${CACHE_FILE}" | sort --version-sort | tail -n1 | cut -d "\"" -f 2)" + URL="https://openrgb.org/$( grep -o -E "/releases/release_[[:digit:]]+\.[[:digit:]]+/openrgb_[[:digit:]]+\.[[:digit:]]_${HOST_ARCH}_bullseye_[[:digit:]]+\.deb" "${CACHE_FILE}" )" ;; esac - VERSION_PUBLISHED="$(echo "${URL}" | cut -d "_" -f 5)" + VERSION_PUBLISHED="$(echo "${URL}" | grep -o -E '[[:digit:]]+\.[[:digit:]]+'|sort -u)" fi PRETTY_NAME="OpenRGB" WEBSITE="https://openrgb.org/"