Skip to content

Commit

Permalink
Update rtsetup
Browse files Browse the repository at this point in the history
Use latest release instead of tag
  • Loading branch information
V33m committed Aug 27, 2020
1 parent deff019 commit b18b571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtsetup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b18b571

Please sign in to comment.