verify checksum in install_cli.sh

This commit is contained in:
Pavel Sviderski
2025-02-06 15:17:33 +10:00
parent 0d9a2b6e07
commit 5b66cec627
+7 -8
View File
@@ -78,15 +78,14 @@ curl -fsSL "$BINARY_URL" -o "${TMP_DIR}/${BINARY_NAME}"
curl -fsSL "$CHECKSUM_URL" -o "${TMP_DIR}/checksums.txt" curl -fsSL "$CHECKSUM_URL" -o "${TMP_DIR}/checksums.txt"
echo "Download complete." echo "Download complete."
# TODO: fix name_template in goreleaser config. echo "Verifying checksum..."
#echo "Verifying checksum..."
cd "$TMP_DIR" cd "$TMP_DIR"
#if ! sha256sum --check --ignore-missing "checksums.txt"; then if ! sha256sum --check --ignore-missing "checksums.txt"; then
# echo "Checksum verification failed." echo "Checksum verification failed."
# print_manual_install print_manual_install
# exit 1 exit 1
#fi fi
#echo "Checksum is valid." echo "Checksum is valid."
# Decompress and install the binary. # Decompress and install the binary.
tar -xf "${BINARY_NAME}" tar -xf "${BINARY_NAME}"