Advertisement
Guest User

sha256sum-checkfile

a guest
Jun 23rd, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # stop script on errors
  4. set -e
  5.  
  6. PROG=sha256sum
  7. FILENAME=verify-tree
  8.  
  9. echo ""
  10. echo "Checking: ${FILENAME}.sha256"
  11. echo "File Hashes: $(wc -l ${FILENAME}.sha256)"
  12. time ${PROG} -c --quiet "${FILENAME}.sha256"
  13. echo ""
  14. echo "All files verified."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement