]> diplodocus.org Git - nmh/commitdiff
build_nmh: Have a silent curl still show errors.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 24 Oct 2016 08:31:00 +0000 (09:31 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 24 Oct 2016 08:31:00 +0000 (09:31 +0100)
Arguably, -sS should be curl's defaults!

docs/contrib/build_nmh

index 36fd869..693c457 100755 (executable)
@@ -148,7 +148,7 @@ else
       [ "$verbose" -eq 0 ] && wget_opts='--quiet'
       wget --output-document - $wget_opts "$snapshot" | tar xzf -
     elif [ "`finddir curl`" ]; then
-      [ "$verbose" -eq 0 ] && curl_opts=--silent
+      [ "$verbose" -eq 0 ] && curl_opts='--silent --show-error'
       curl --location $curl_opts "$snapshot" | tar xzf -
     else
       die 'unable to find program to download nmh sources'