Instantly share code, notes, and snippets.

What would you like to do?
Raspberry Pi download hash-check
cd ~/Downloads
wget -O
sha1=$(shasum -a 256 | grep -o -P "[0-9a-z]{40,}")
sha2=$(curl | grep -o -P "[0-9a-z]{40,}" | head -1)
sleep 10
echo Prüfsumme aus Download $sha1
echo Prüfsumme von Webseite $sha2
if [ $sha1 == $sha2 ]; then
echo "Prüfsumme stimmt "
echo "Achtung,Prüfsumme stimmt nicht überein !"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment