get non rc ver

This commit is contained in:
nyyu 2021-08-26 15:04:56 +02:00
parent 88a5ec32c7
commit 34b58b85b7

View File

@ -3,7 +3,7 @@
update_github_tag() {
local repo=$1
ver=`curl -Ls https://api.github.com/repos/${repo}/tags | jq -r '.[0].name' | cut -c2-`
ver=`curl -Ls https://api.github.com/repos/${repo}/tags | jq -r '[.[] | select(.name | index("rc") | not)] | first | .name' | cut -c2-`
echo "$ver" | grep -Eq "^(\w|\+|\.)+$" && sed -i "s/pkgver=.*/pkgver=${ver}/" PKGBUILD
}