fate: improve md5sum utility selection
authorMans Rullgard <mans@mansr.com>
Sun, 14 Oct 2012 14:49:25 +0000 (15:49 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 15 Oct 2012 20:40:08 +0000 (21:40 +0100)
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>
tests/md5.sh

index 4b95127..0b382b1 100644 (file)
@@ -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#'; }