Fix typo in versioning

This commit is contained in:
Sayantan Santra 2022-11-20 02:40:25 -06:00
parent 5e3bb2d664
commit 37006f06cd

View file

@ -14,11 +14,11 @@ sources=()
checksums=()
version() {
printf "$(curl --silent "https://api.github.com/repos/$repo/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
}
package() {
vers="$(curl --silent "https://api.github.com/repos/$repo/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
vers="$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(r.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
echo Installing ${name} ${vers}
curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}-linux-${architecture}.tar.gz" -o ${name}.tar.gz
tar xzf "${name}.tar.gz" -C .