summaryrefslogtreecommitdiff
path: root/scripts/md5sum
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-27 09:27:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-27 09:27:41 +0100
commit5fc248537e0512702be19ccead68208159c0e1d7 (patch)
treef1838b934ca565406bb01eabd054721d0e4e3bc3 /scripts/md5sum
parentd9e97c41a653e25ea842ad6110c014292deb8a20 (diff)
some distros use /bin for md5sum
Diffstat (limited to 'scripts/md5sum')
-rwxr-xr-xscripts/md5sum3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/md5sum b/scripts/md5sum
index 24e1e9fac..48c2463d0 100755
--- a/scripts/md5sum
+++ b/scripts/md5sum
@@ -4,6 +4,9 @@
if [ -x /usr/bin/md5sum ]; then
/usr/bin/md5sum "$@"
+else if [ -x /bin/md5sum ]; then
+ /bin/md5sum "$@"
else
md5 "$@" | sed 's#MD5 (\([^)]*\)) = \(.*\)#\2 \1#'
fi
+fi