I know that you can use shasum -a 256 filename
to create a SHA-256 checksum for a file, but how can one automate the check if known SHA-256 matches a file on a mac?
Since the Mac shell is zsh by default, but our CI runner uses bash, I want to know both versions (for local testing and for the ci).