* BSD's md5 does not have a --help option. Trying /dev/null instead.

This commit is contained in:
Sam Hocevar
2007-01-06 21:54:02 +00:00
committed by sam
parent f77a838606
commit c2d12ddd92

View File

@@ -51,9 +51,9 @@ seed=$((0$1))
ZZUF="$(dirname "$0")/../src/zzuf"
FDCAT="$(dirname "$0")/fdcat"
STREAMCAT="$(dirname "$0")/streamcat"
if md5sum --help >/dev/null 2>&1; then
if md5sum /dev/null >/dev/null 2>&1; then
MD5PROG=md5sum
elif md5 --help >/dev/null 2>&1; then
elif md5 /dev/null >/dev/null 2>&1; then
MD5PROG=md5
else
echo "error: no md5 program found (tried: md5sum, md5)"