summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-10-14 15:49:25 +0100
committerMans Rullgard <mans@mansr.com>2012-10-15 21:40:08 +0100
commit099294577c8ca5d1a7d3403a57b607791997104d (patch)
treeaa6b2f174847e4033263326f73e85ebdac3d9e43
parentf1be514540dc2a6d89b8d487eabf69827bfd1c60 (diff)
fate: improve md5sum utility selection
The 'md5sum' command is used with the -b flag so the presence test must also use this flag. Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r--tests/md5.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/md5.sh b/tests/md5.sh
index 4b95127701..0b382b1a5e 100644
--- a/tests/md5.sh
+++ b/tests/md5.sh
@@ -1,6 +1,6 @@
# try to find an md5 program
-if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then
+if [ X"$(echo | md5sum -b 2> /dev/null)" != X ]; then
do_md5sum() { md5sum -b $1; }
elif [ X"$(echo | command md5 2> /dev/null)" != X ]; then
do_md5sum() { command md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }