From af8c799fd1449664694960b99cc3beeabd457442 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Thu, 3 Dec 2020 09:43:23 -0500 Subject: [PATCH] Fixed Reaper installer --- scripts/installers/reaper-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/installers/reaper-install.sh b/scripts/installers/reaper-install.sh index f96ec93..6e276cc 100644 --- a/scripts/installers/reaper-install.sh +++ b/scripts/installers/reaper-install.sh @@ -6,10 +6,10 @@ source $(dirname ${BASH_SOURCE[0]})/install-lib.sh # Get download url -reaperVersion=$(head /opt/REAPER/whatsnew.txt | grep -Go '[0-9]\.[0-9][0-9]') +reaperVersion=$(head /opt/REAPER/whatsnew.txt | filterVersion) reaperSite='https://www.reaper.fm/' downloadPage=$(curl -s ${reaperSite}download.php) -urlVersion=$(echo "$downloadPage" | grep -A 2 'Linux x86_64' | grep -Go '[0-9]\.[0-9][0-9]') +urlVersion=$(echo "$downloadPage" | grep -A 2 'Linux x86_64' | filterVersion) url=$reaperSite$(echo "$downloadPage" | grep linux_x86_64 | grep -Po '(?<=href=")[^"]*') checkUptoDate Reaper $reaperVersion $urlVersion