md5sum 325 B

123456789101112
  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/md5sum ]; then
  5. /usr/bin/md5sum "$@"
  6. else if [ -x /bin/md5sum ]; then
  7. /bin/md5sum "$@"
  8. else
  9. md5 "$@" | sed 's#MD5 (\([^)]*\)) = \(.*\)#\2 \1#'
  10. fi
  11. fi