From b18b5718fe482107e082810d73e1a86d6eea724f Mon Sep 17 00:00:00 2001 From: V33m <48420633+V33m@users.noreply.github.com> Date: Thu, 27 Aug 2020 22:23:32 +0200 Subject: [PATCH] Update rtsetup Use latest release instead of tag --- rtsetup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtsetup b/rtsetup index 8c5612b..748b4ef 100755 --- a/rtsetup +++ b/rtsetup @@ -57,7 +57,7 @@ if [ -d /etc/rtinst ] && [ -z $branch ]; then if [ -z $branch ]; then branch=$(git describe --tags --exact-match) if [ ${branch:0:1} = v ]; then - latest=$(basename "$(git ls-remote --tags https://github.com/arakasi72/rtinst.git | grep -o 'refs/tags/v.*' | sort -V | tail -1)") + latest=$(curl -s "https://api.github.com/repos/arakasi72/rtinst/releases/latest" | awk -F '"' '/tag_name/{print $4}') if [ $branch != $latest ]; then echo "Updating from $branch to $latest" branch=$latest