Skip to content

Commit b6d6f8e

Browse files
committed
Rollup merge of rust-lang#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
2 parents 4423748 + 0cac791 commit b6d6f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,10 @@ probe CFG_MD5 md5
717717
probe CFG_MD5SUM md5sum
718718
if [ -n "$CFG_MD5" ]
719719
then
720-
CFG_HASH_COMMAND="$CFG_MD5 -q | head -c 8"
720+
CFG_HASH_COMMAND="$CFG_MD5 -q | cut -c 1-8"
721721
elif [ -n "$CFG_MD5SUM" ]
722722
then
723-
CFG_HASH_COMMAND="$CFG_MD5SUM | head -c 8"
723+
CFG_HASH_COMMAND="$CFG_MD5SUM | cut -c 1-8"
724724
else
725725
err 'could not find one of: md5 md5sum'
726726
fi

0 commit comments

Comments
 (0)