Skip to content
Snippets Groups Projects
Commit 09929457 authored by Mans Rullgard's avatar Mans Rullgard
Browse files

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: default avatarMans Rullgard <mans@mansr.com>
parent f1be5145
No related branches found
No related tags found
No related merge requests found
# try to find an md5 program # 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; } do_md5sum() { md5sum -b $1; }
elif [ X"$(echo | command md5 2> /dev/null)" != X ]; then elif [ X"$(echo | command md5 2> /dev/null)" != X ]; then
do_md5sum() { command md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; } do_md5sum() { command md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment