Skip to content

Commit

Permalink
fix: version issues
Browse files Browse the repository at this point in the history
  • Loading branch information
scmmishra committed Mar 7, 2024
1 parent dd81955 commit 63d7ede
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ download_from_github() {
local repo=$1
local release=$2
local name=$3
local filename=${name}_${release}_${OS}_${ARCH}.tar.gz

local release_without_prefix=${release#v}
local filename=${name}_${release_without_prefix}_${OS}_${ARCH}.tar.gz
# Construct download URL
local download_url="https://github.com/${repo}/releases/download/${release}/${filename}"

Expand All @@ -58,7 +60,6 @@ download_from_github() {
binary_dir="/usr/local/bin"
fi
echo "Installing ${name}"
echo filename
sudo tar -xzvf "${filename}" -C "${binary_dir}" > /dev/null

# Make the binary executable
Expand Down

0 comments on commit 63d7ede

Please sign in to comment.