From 194f31b52c7bebfa9f64502178cdd5c503699fb6 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Thu, 16 May 2024 03:09:33 +0100 Subject: [PATCH] fix(bitwig-studio): Copy required function into package definition this can be reverted once it is published in a deb-get release --- 01-main/packages/bitwig-studio | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/01-main/packages/bitwig-studio b/01-main/packages/bitwig-studio index 33daf81c..956f30f4 100644 --- a/01-main/packages/bitwig-studio +++ b/01-main/packages/bitwig-studio @@ -1,5 +1,11 @@ DEFVER=1 get_website "https://www.bitwig.com/download/" +# temporarily include a new function here to follow the redirect +# even on current deb-get versions +function follow_url() { + local TRIM_URL="$(curl -w "%{url_effective}" -I -L -s -S "${1}" -o /dev/null)" + printf '%s' "${TRIM_URL}" +} if [ "${ACTION}" != "prettylist" ]; then URL="$(follow_url "$(grep -o "https://www\.bitwig\.com/dl/Bitwig%20Studio/[[:digit:]]*.[[:digit:]]*.[[:digit:]]*/installer_linux/" "${CACHE_FILE}")")" VERSION_PUBLISHED="$(echo "\"${URL}\"" | cut -d "/" -f 4)"