mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 17:25:34 +00:00
Fixed Bitwig installer for new version
This commit is contained in:
parent
7e0337f8a6
commit
80946e9761
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user