summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-27 08:27:41 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-27 08:27:41 (GMT)
commit5fc248537e0512702be19ccead68208159c0e1d7 (patch)
treef1838b934ca565406bb01eabd054721d0e4e3bc3 /scripts
parentd9e97c41a653e25ea842ad6110c014292deb8a20 (diff)
some distros use /bin for md5sum
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/md5sum3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/md5sum b/scripts/md5sum
index 24e1e9f..48c2463 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