Last active
June 17, 2017 04:36
-
-
Save moocowmoo/6a2a051ab3990827cc7ac347b1b56497 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "getting checksum list" | |
wget -q https://github.com/dashpay/dash/releases/download/v0.12.1.5/SHA256SUMS.asc | |
FILENAMES=$(cat SHA256SUMS.asc | grep dash | awk '{print $2}') | |
echo "downloading binaries" | |
for file in $FILENAMES ; do echo " getting $file" ; wget -q https://www.dash.org/binaries/$file ; done | |
echo "computing and verifying checksums" | |
echo "each line should show twice" | |
echo | |
for file in $FILENAMES ; do CS=$(sha256sum $file); echo $CS ; C=$( echo $CS | awk '{print $1}'); grep $C SHA256SUMS.asc ; echo ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment