summaryrefslogtreecommitdiff
path: root/scripts/md5sum
blob: 6a95a470703fd63dd3f0bce3acbb349a085902b7 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

if [ -x /usr/bin/md5sum ];then
	md5sum "$@"
else
	md5 "$@" | sed 's#MD5 (\([^)]*\)) = \(.*\)#\2  \1#'
fi