mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
verify checksum in install_cli.sh
This commit is contained in:
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user