Skip to content

Commit

Permalink
fix(bitwig-studio): Copy required function into package definition
Browse files Browse the repository at this point in the history
this can be reverted once it is published in a deb-get release
  • Loading branch information
philclifford committed May 16, 2024
1 parent 723acad commit 194f31b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 01-main/packages/bitwig-studio
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down

0 comments on commit 194f31b

Please sign in to comment.