Skip to content

Instantly share code, notes, and snippets.

@r0mdau
Created April 26, 2021 20:00
Show Gist options
  • Save r0mdau/3e98aad1aec065c58707a47ef17c92a3 to your computer and use it in GitHub Desktop.
Save r0mdau/3e98aad1aec065c58707a47ef17c92a3 to your computer and use it in GitHub Desktop.
One line to check sha256sum of file and exit if not good
#!/bin/bash
echo b298d29de9236ca47a023e382313bcc2d2eed31dfa706b60a04103ce83a71a25 go1.16.3.src.tar.gz | sha256sum --check --status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment