Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I did a rough sketch of how this would work. Please consider changing revising where appropriate. - What does this change do? Basic checking of sha256 of a file. My change calculates the hash of the file it downloads and also downloads a list of hashes, we then compare the first 64 characters, the hash, that the pc calculates to the hash it downloaded. Should there be a mismatch or if a file fails to download, the script will exit 1. Please change as you feel necessary. *ps. I'm not sure if the script should eval the hashes right before it compares them or if the way I evaluate the variables is ok. Also I did not use grep as I have been told it was bad.
- Loading branch information