* Allow extra parameters to be passed to Curl through the `CURL_FLAGS'

environment variable.  This is useful for passing authentication
  information (it won't show up in `ps').  Hacky - nix-push should
  abstract over the use of Curl.
This commit is contained in:
Eelco Dolstra 2004-04-15 15:14:16 +00:00
parent 2c5a8bf49f
commit 7cce0c34e1

View File

@ -12,7 +12,7 @@ my $manifest = "$tmpdir/MANIFEST";
END { unlink $manifest; unlink $nixfile; rmdir $tmpdir; }
my $curl = "@curl@ --fail --silent";
my $curl = "@curl@ --fail --silent ${ENV{'CURL_FLAGS'}}";
# Parse the command line.