Skip to content

Commit

Permalink
updated install script
Browse files Browse the repository at this point in the history
Signed-off-by: bishal7679 <bishalhnj127@gmail.com>
  • Loading branch information
bishal7679 committed May 14, 2023
1 parent cbedf92 commit e937ac8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ cd /tmp
sudo wget -q https://github.com/bishal7679/ksapify/releases/download/v${RELEASE_VERSION}/ksapify_${RELEASE_VERSION}_checksums.txt
sudo wget https://github.com/bishal7679/ksapify/releases/download/v${RELEASE_VERSION}/ksapify_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz

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

if [[ $file != $checksum ]]; then
echo -e "${Red}Checksum didn't matched!${NoColor}"
exit 1
else
echo -e "${Green}CheckSum are verified${NoColor}"
fi
# file=$(sha256sum ksapify_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz | awk '{print $1}')
# checksum=$(cat ksapify_${RELEASE_VERSION}_checksums.txt | grep ksapify_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz | awk '{print $1}')

# if [[ $file != $checksum ]]; then
# echo -e "${Red}Checksum didn't matched!${NoColor}"
# exit 1
# else
# echo -e "${Green}CheckSum are verified${NoColor}"
# fi

sudo tar -xvf ksapify_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz

Expand Down

0 comments on commit e937ac8

Please sign in to comment.