get non rc ver
This commit is contained in:
parent
88a5ec32c7
commit
34b58b85b7
2
.util.sh
2
.util.sh
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user