mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-25 22:38:36 -06:00
Much cleaner version detection
This commit is contained in:
parent
73b8fcd308
commit
f5fb9a9608
5 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ sources=()
|
|||
checksums=()
|
||||
|
||||
version() {
|
||||
printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "v(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||
printf "$(curl -sL "https://api.github.com/repos/${git_repo}/releases/latest" | jq -r '.tag_name')"
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
|
@ -14,7 +14,7 @@ sources=()
|
|||
checksums=()
|
||||
|
||||
version() {
|
||||
printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||
printf "$(curl -sL "https://api.github.com/repos/${git_repo}/releases/latest" | jq -r '.tag_name')"
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
|
@ -14,7 +14,7 @@ sources=()
|
|||
checksums=()
|
||||
|
||||
version() {
|
||||
printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "v(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||
printf "$(curl -sL "https://api.github.com/repos/${git_repo}/releases/latest" | jq -r '.tag_name')"
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
|
@ -14,7 +14,7 @@ sources=()
|
|||
checksums=()
|
||||
|
||||
version() {
|
||||
printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||
printf "$(curl -sL "https://api.github.com/repos/${git_repo}/releases/latest" | jq -r '.tag_name')"
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
|
@ -14,7 +14,7 @@ sources=()
|
|||
checksums=()
|
||||
|
||||
version() {
|
||||
printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||
printf "$(curl -sL "https://api.github.com/repos/${git_repo}/releases/latest" | jq -r '.tag_name')"
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
Loading…
Reference in a new issue