diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2015-05-20 13:54:14 +0200 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2015-05-20 13:54:14 +0200 |
| commit | 0cac79181b1014bee376d9664f7bbf18559f474d (patch) | |
| tree | 9849bbc223064f712a53c499307779d3b72917ef | |
| parent | 6d718f236dfdb086099d6147895416422aae4283 (diff) | |
| download | rust-0cac79181b1014bee376d9664f7bbf18559f474d.tar.gz rust-0cac79181b1014bee376d9664f7bbf18559f474d.zip | |
use posix command to extract first 8 chars
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.
| -rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure index 4f3375b8668..9b8207ee915 100755 --- a/configure +++ b/configure @@ -717,10 +717,10 @@ probe CFG_MD5 md5 probe CFG_MD5SUM md5sum if [ -n "$CFG_MD5" ] then - CFG_HASH_COMMAND="$CFG_MD5 -q | head -c 8" + CFG_HASH_COMMAND="$CFG_MD5 -q | cut -c 1-8" elif [ -n "$CFG_MD5SUM" ] then - CFG_HASH_COMMAND="$CFG_MD5SUM | head -c 8" + CFG_HASH_COMMAND="$CFG_MD5SUM | cut -c 1-8" else err 'could not find one of: md5 md5sum' fi |
