Created
January 13, 2022 04:38
-
-
Save Diviector/68ba32e2226c7571a6ae44e017bea266 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file_checksum="$(sha256 $1 | awk '{print $1}')" | |
if [ "$2" == "$file_checksum" ] | |
then | |
echo OK | |
else | |
echo FAILD | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment