From 34b58b85b73c995115b10f3bf45870603b4595f5 Mon Sep 17 00:00:00 2001 From: nyyu Date: Thu, 26 Aug 2021 15:04:56 +0200 Subject: [PATCH] get non rc ver --- .util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.util.sh b/.util.sh index 5757404..1a26064 100644 --- a/.util.sh +++ b/.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 }