From 723acad2aa2faa10d5030674e4178a5c62cb6c96 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Thu, 16 May 2024 02:58:04 +0100 Subject: [PATCH] fix: provide output filename to downloader --- 01-main/packages/bitwig-studio | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/01-main/packages/bitwig-studio b/01-main/packages/bitwig-studio index 8a60b2e4..33daf81c 100644 --- a/01-main/packages/bitwig-studio +++ b/01-main/packages/bitwig-studio @@ -1,8 +1,9 @@ DEFVER=1 get_website "https://www.bitwig.com/download/" if [ "${ACTION}" != "prettylist" ]; then - URL=$(grep -o "https://www\.bitwig\.com/dl/Bitwig%20Studio/[[:digit:]]*.[[:digit:]]*.[[:digit:]]*/installer_linux" "${CACHE_FILE}") - VERSION_PUBLISHED="$(echo "${URL}" | cut -d "/" -f 6)" + 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)" + FILE="${DOWNLOAD_DIR}/Bitwig_Studio_${VERSION_PUBLISHED}.deb" fi PRETTY_NAME="BitWig Studio" WEBSITE="https://www.bitwig.com/"