From 2bf416ce93a35df84c20ea3c5374e480007740c0 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Sat, 17 Sep 2022 10:11:49 -0400 Subject: [PATCH] Yabridge install use GitHub API --- scripts/installers/yabridge-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/installers/yabridge-install.sh b/scripts/installers/yabridge-install.sh index e10586a..20422cc 100755 --- a/scripts/installers/yabridge-install.sh +++ b/scripts/installers/yabridge-install.sh @@ -15,9 +15,10 @@ if ! command -v wine &> /dev/null; then fi program=yabridgectl -programVersion=$(yabridgectl --help | filterVersion) -url=$(curl -s https://github.com/robbert-vdh/yabridge/releases/ | grep .tar.gz \ - | grep -v ubuntu | grep -Po '(?<=href=")[^"]*.tar.gz'| head -n 1) +programVersion=$(yabridgectl --version | filterVersion) +url=$(curl -s https://api.github.com/repos/robbert-vdh/yabridge/releases | \ + grep .tar.gz | grep releases/download | \ + grep -Po 'https://[^"]*.tar.gz' | grep -v ubuntu | head -n 1) url='https://github.com'$url urlVersion=$(echo $url | filterVersion | head -n 1)