Fixed Bitwig installer for new version

This commit is contained in:
Christian Colglazier 2020-11-26 12:25:55 -05:00
parent 7e0337f8a6
commit 80946e9761
2 changed files with 2 additions and 3 deletions

View File

@ -8,8 +8,7 @@ source $(dirname ${BASH_SOURCE[0]})/install-lib.sh
site='https://www.bitwig.com/download/'
bitwig=$(sudo dnf list | grep bitwig-studio)
bitwigVersion=$(echo $bitwig | awk '{print $2;}'| filterVersion)
downloadPage=$(curl -s $site)
urlVersion=$(echo $downloadPage | filterVersion | head -n 1) # grep -Po 'Bitwig Studio \d{1,4}\.\d{1,4}\.\d{1,4}')
urlVersion=$(curl -s $site | grep 'Bitwig Studio' | filterVersion | head -n 1)
url=https://downloads-na.bitwig.com/stable/$urlVersion/bitwig-studio-$urlVersion.deb
checkUptoDate Bitwig $bitwigVersion $urlVersion

View File

@ -36,7 +36,7 @@ function checkUptoDate() {
# Filters string to Semantic Versioning.
function filterVersion() {
grep -Po -m 1 '\d{1,4}\.\d{1,4}\.\d{1,4}'
grep -Po -m 1 '\d{1,4}\.\d{1,4}\.*\d{0,4}'
}
# Downloads a file to the given download directory with