fix(autoupdate): exclude dev
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2022-01-15 14:40:47 +01:00
parent 3b67cfaa09
commit 499d3c7060

View File

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