X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1a296f8dd3a81f722fca3423898d8c4c5e972c06..eacedee1a02f9e4be64929a2520099b14dc0a049:/docs/contrib/build_nmh diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index 36fd8698..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 - curl --location $curl_opts "$snapshot" | tar xzf - + [ "$verbose" -eq 0 ] && curl_opts='--silent --show-error' + curl --location $curl_opts "$snapshot" | gzip -d | tar xf - else die 'unable to find program to download nmh sources' fi