Skip to content

Commit

Permalink
Download from https
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Apr 25, 2023
1 parent d932f55 commit 14b6ebb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ install() {
local install_type=$1
[[ ${install_type} != "version" ]] && echo "install type, ${install_type}, is not supported" && exit 1

local prefix="v"
local version=$2
local install_path=$3

Expand All @@ -33,16 +34,16 @@ install() {
i?86) arch="i386" ;;
esac

local download_url
download_url="https://releases.commonfate.io/granted/v${version}/granted_${version}_${platform}_${arch}.tar.gz"
local download_filename="kubecolor_${version}_${platform}_${arch}.tar.gz"
local download_url="https://releases.commonfate.io/granted/${prefix}${version}/${download_filename}"

echo "Downloading Granted from ${download_url}"

pushd "${tmp_download_dir}" >/dev/null

curl -sLO "${download_url}"

tar zxf "granted_${version}_${platform}_${arch}.tar.gz"
tar zxf "${download_filename}"

mkdir -p "${bin_install_path}"

Expand Down

0 comments on commit 14b6ebb

Please sign in to comment.