1
0
mirror of https://github.com/elisspace/rtinst.git synced 2026-08-29 15:44:06 +00:00

Update rtsetup

Use latest release instead of tag
This commit is contained in:
V33m
2020-08-27 22:23:32 +02:00
parent deff019f56
commit b18b5718fe

View File

@@ -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