From: Ralph Corderoy Date: Mon, 24 Oct 2016 08:33:56 +0000 (+0100) Subject: build_nmh: Use `gzip -d' rather than assume tar has -z. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/eacedee1a02f9e4be64929a2520099b14dc0a049?ds=inline;hp=204fe60b28128d6210f63b58fb2d10ccfd054b79 build_nmh: Use `gzip -d' rather than assume tar has -z. --- diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index 693c4578..358531dc 100755 --- a/docs/contrib/build_nmh +++ b/docs/contrib/build_nmh @@ -146,10 +146,10 @@ else snapshot="$repo/$tarball" if [ "`finddir wget`" ]; then [ "$verbose" -eq 0 ] && wget_opts='--quiet' - wget --output-document - $wget_opts "$snapshot" | tar xzf - + wget --output-document - $wget_opts "$snapshot" | gzip -d | tar xf - elif [ "`finddir curl`" ]; then [ "$verbose" -eq 0 ] && curl_opts='--silent --show-error' - curl --location $curl_opts "$snapshot" | tar xzf - + curl --location $curl_opts "$snapshot" | gzip -d | tar xf - else die 'unable to find program to download nmh sources' fi