Skip to content

Instantly share code, notes, and snippets.

@moocowmoo
Last active June 17, 2017 04:36
Show Gist options
  • Save moocowmoo/6a2a051ab3990827cc7ac347b1b56497 to your computer and use it in GitHub Desktop.
Save moocowmoo/6a2a051ab3990827cc7ac347b1b56497 to your computer and use it in GitHub Desktop.
#!/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