Rollup merge of #25648 - semarie:head-cut, r=luqmana
the "-c" option of head isn't a posix option, and it isn't supported under openbsd. prefer the use of cut -c 1-8 (which is posix) to extract the first 8 chars. r? @alexcrichton
This commit is contained in:
commit
02bce96e7b
4
configure
vendored
4
configure
vendored
@ -717,10 +717,10 @@ probe CFG_MD5 md5
|
|||||||
probe CFG_MD5SUM md5sum
|
probe CFG_MD5SUM md5sum
|
||||||
if [ -n "$CFG_MD5" ]
|
if [ -n "$CFG_MD5" ]
|
||||||
then
|
then
|
||||||
CFG_HASH_COMMAND="$CFG_MD5 -q | head -c 8"
|
CFG_HASH_COMMAND="$CFG_MD5 -q | cut -c 1-8"
|
||||||
elif [ -n "$CFG_MD5SUM" ]
|
elif [ -n "$CFG_MD5SUM" ]
|
||||||
then
|
then
|
||||||
CFG_HASH_COMMAND="$CFG_MD5SUM | head -c 8"
|
CFG_HASH_COMMAND="$CFG_MD5SUM | cut -c 1-8"
|
||||||
else
|
else
|
||||||
err 'could not find one of: md5 md5sum'
|
err 'could not find one of: md5 md5sum'
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user