Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/fossas/fossa-cli
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/fossas/fossa-cli:
  revert(install): remove sha validation
  • Loading branch information
xizhao committed Mar 6, 2018
2 parents d604f5b + 8235155 commit c285037
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function install {
else
fail "neither wget nor curl are installed"
fi
which sha256sum > /dev/null || fail "sha256sum is not installed"
which tar > /dev/null || fail "tar is not installed"
which gzip > /dev/null || fail "gzip is not installed"

Expand Down Expand Up @@ -92,7 +91,6 @@ function install {
RELEASE_URL="$GH/$USER/$REPO/releases/download/$RELEASE"
bash -c "$GET $RELEASE_URL/${REPO}_${VERSION}_${OS}_${ARCH}.tar.gz" > release.tar.gz || fail "downloading release failed"
bash -c "$GET $RELEASE_URL/${REPO}_${VERSION}_checksums.txt" > checksums.txt || fail "downloading checksums failed"
[ "$(grep "${OS}_${ARCH}" checksums.txt | cut -f 1 -d " ")" == "$(sha256sum release.tar.gz | cut -f 1 -d " ")" ] || fail "invalid checksum"

# Extract release
tar zxf release.tar.gz || fail "tar failed"
Expand Down

0 comments on commit c285037

Please sign in to comment.