made md5 command portable via wrapper script

This commit is contained in:
git@daemon.de
2014-03-10 17:05:41 +01:00
parent c5903ad7b4
commit e8d835c0c6
2 changed files with 19 additions and 12 deletions

7
tests/md5 Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
file=$1
if type md5 > /dev/null 2>&1; then
md5 -q $*
else
md5sum $* | awk '{print $1}'
fi