Fix download link

This commit is contained in:
Sayantan Santra 2022-11-20 02:51:25 -06:00
parent 37006f06cd
commit 8678b463ff

View file

@ -20,7 +20,7 @@ version() {
package() { package() {
vers="$(curl --silent "https://api.github.com/repos/${git_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} echo Installing ${name} ${vers}
curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}-linux-${architecture}.tar.gz" -o ${name}.tar.gz curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}-linux-${architectures}.tar.gz" -o ${name}.tar.gz
tar xzf "${name}.tar.gz" -C . tar xzf "${name}.tar.gz" -C .
install -Dm755 "./${name}" "${pkgdir}/usr/local/bin/${name}" install -Dm755 "./${name}" "${pkgdir}/usr/local/bin/${name}"
} }