summaryrefslogtreecommitdiff
path: root/scripts/md5sum
blob: 24e1e9fac698aa8dfff635fbe4e2637784ddd8b7 (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
	/usr/bin/md5sum "$@"
else
	md5 "$@" | sed 's#MD5 (\([^)]*\)) = \(.*\)#\2  \1#'
fi