fix(autoupdate): exclude dev
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3b67cfaa09
commit
499d3c7060
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 '[.[] | 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user