sha256sum 285 B

1234567891011
  1. #!/usr/bin/env bash
  2. # This file is part of the OpenADK project. OpenADK is copyrighted
  3. # material, please see the LICENCE file in the top-level directory.
  4. if [ -x /usr/bin/sha256sum ]; then
  5. /usr/bin/sha256sum "$@"
  6. else
  7. tmp=$(mktemp -t yyy)
  8. cat - > $tmp
  9. shasum -a 256 "$@" $tmp
  10. fi