From 7cce0c34e1821b08c066a25e2cffcf0910d1f145 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 15 Apr 2004 15:14:16 +0000 Subject: [PATCH] * 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. --- scripts/nix-push.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nix-push.in b/scripts/nix-push.in index 57d89d13c..02f40f04a 100644 --- a/scripts/nix-push.in +++ b/scripts/nix-push.in @@ -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.