Skip to content

Commit

Permalink
fixed the go release download
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed Oct 23, 2023
1 parent 408a1c3 commit 6167f61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ else
fi

cd /tmp
sudo wget -q https://github.com/kubesimplify/ksctl-cli/releases/download/v${RELEASE_VERSION}/ksctl_${RELEASE_VERSION}_checksums.txt
sudo wget https://github.com/kubesimplify/ksctl-cli/releases/download/v${RELEASE_VERSION}/ksctl_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz
sudo wget -q https://github.com/kubesimplify/ksctl-cli/releases/download/v${RELEASE_VERSION}/ksctl_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz.cert
sudo wget -q https://github.com/kubesimplify/ksctl-cli/releases/download/v${RELEASE_VERSION}/ksctl-cli_${RELEASE_VERSION}_checksums.txt
sudo wget https://github.com/kubesimplify/ksctl-cli/releases/download/v${RELEASE_VERSION}/ksctl-cli_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz
sudo wget -q https://github.com/kubesimplify/ksctl-cli/releases/download/v${RELEASE_VERSION}/ksctl-cli_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz.cert

file=$(sha256sum ksctl_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz | awk '{print $1}')
checksum=$(cat ksctl_${RELEASE_VERSION}_checksums.txt | grep ksctl_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz | awk '{print $1}')
file=$(sha256sum ksctl-cli_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz | awk '{print $1}')
checksum=$(cat ksctl-cli_${RELEASE_VERSION}_checksums.txt | grep ksctl-cli_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz | awk '{print $1}')

if [[ $file != $checksum ]]; then
echo -e "${Red}Checksum didn't matched!${NoColor}"
Expand All @@ -91,7 +91,7 @@ else
echo -e "${Green}CheckSum are verified${NoColor}"
fi

sudo tar -xvf ksctl_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz
sudo tar -xvf ksctl-cli_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz

sudo mv -v ksctl /usr/local/bin/ksctl
# Setup the configurations dir
Expand Down

0 comments on commit 6167f61

Please sign in to comment.