No need for version in download link

This commit is contained in:
Sayantan Santra 2022-11-22 00:52:56 -06:00
parent 706f49a0f0
commit 73b8fcd308
5 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ version() {
package() {
# Pull sources
echo Pulling ${name} ${version}
curl -L "https://github.com/${git_repo}/releases/download/${version}/${name}-${version}-x86_64-unknown-linux-musl.tar.gz" -o ${name}.tar.gz
curl -L "https://github.com/${git_repo}/releases/latest/download/${name}-${version}-x86_64-unknown-linux-musl.tar.gz" -o ${name}.tar.gz
# Build package
echo Creating the package
tar -xzf "${name}.tar.gz" -C .

View file

@ -20,7 +20,7 @@ version() {
package() {
# Pull sources
echo Pulling ${name} ${version}
curl -L "https://github.com/${git_repo}/releases/download/${version}/fzf-${version}-linux_amd64.tar.gz" -o ${name}.tar.gz
curl -L "https://github.com/${git_repo}/releases/latest/download/fzf-${version}-linux_amd64.tar.gz" -o ${name}.tar.gz
curl -L "https://raw.githubusercontent.com/${git_repo}/master/bin/${name}-tmux" -o ${name}-tmux
curl -L "https://raw.githubusercontent.com/${git_repo}/master/man/man1/${name}.1" -o ${name}.1
curl -L "https://raw.githubusercontent.com/${git_repo}/master/man/man1/${name}-tmux.1" -o ${name}-tmux.1

View file

@ -20,7 +20,7 @@ version() {
package() {
# Pull sources
echo Pulling ${name} ${version}
curl -L "https://github.com/${git_repo}/releases/download/${version}/${name}_${version}_linux-static_${ARCH}.tar.gz" -o ${name}.tar.gz
curl -L "https://github.com/${git_repo}/releases/latest/download/${name}_${version}_linux-static_${ARCH}.tar.gz" -o ${name}.tar.gz
# Build package
echo Creating the package
tar -xzf "${name}.tar.gz" -C .

View file

@ -20,7 +20,7 @@ version() {
package() {
# Pull sources
echo Pulling ${name} ${version}
curl -L "https://github.com/${git_repo}/releases/download/${version}/${name}-linux-${ARCH}.tar.gz" -o ${name}.tar.gz
curl -L "https://github.com/${git_repo}/releases/latest/download/${name}-linux-${ARCH}.tar.gz" -o ${name}.tar.gz
curl -L "https://raw.githubusercontent.com/${git_repo}/master/${name}.1" -o ${name}.1
command -v fish &> /dev/null && curl -L "https://raw.githubusercontent.com/${git_repo}/master/etc/${name}.fish" -o ${name}.fish
command -v zsh &> /dev/null && curl -L "https://raw.githubusercontent.com/${git_repo}/master/etc/${name}.zsh" -o ${name}.zsh

View file

@ -20,7 +20,7 @@ version() {
package() {
# Pull sources
echo Pulling ${name} ${version}
curl -L "https://github.com/${git_repo}/releases/download/${version}/${name}-${version}-x86_64-unknown-linux-musl.tar.gz" -o ${name}.tar.gz
curl -L "https://github.com/${git_repo}/releases/latest/download/${name}-${version}-x86_64-unknown-linux-musl.tar.gz" -o ${name}.tar.gz
# Build package
echo Creating the package
tar -xzf "${name}.tar.gz" -C .