Skip to content

Commit

Permalink
chore: use sha256sum instead of shasum and download binaries from dec…
Browse files Browse the repository at this point in the history
…khouse website instead of github releases (#41)

Signed-off-by: Maxim Vasilenko <[email protected]>
Co-authored-by: Maxim Vasilenko <[email protected]>
  • Loading branch information
mvasl and Maxim Vasilenko authored Sep 23, 2024
1 parent 5c4ad95 commit 3dc97e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d8-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ getLatestTag() {

downloadRelease() {
D8_DIST="d8-$TAG-$OS-$ARCH.tar.gz"
DOWNLOAD_URL="https://github.com/deckhouse/deckhouse-cli/releases/download/$TAG/$D8_DIST"
DOWNLOAD_URL="https://deckhouse.io/downloads/deckhouse-cli/$TAG/$D8_DIST"
CHECKSUM_URL="$DOWNLOAD_URL.sha256sum"

D8_TMP="$(mktemp -dt d8-installer-XXXXXX)"
Expand All @@ -86,7 +86,7 @@ downloadRelease() {
verifyChecksum() {
printf "Verifying checksum... "
pushd "$D8_TMP" > /dev/null
shasum -a 256 -c "$D8_SUM_FILE"
sha256sum --check "$D8_SUM_FILE"
popd > /dev/null
}

Expand Down

0 comments on commit 3dc97e4

Please sign in to comment.