about summary refs log tree commit diff
path: root/scripts/nix-push.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-04-15T15·14+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-04-15T15·14+0000
commit7cce0c34e1821b08c066a25e2cffcf0910d1f145 (patch)
treeffdf0d232d5ddd1ee342a33552f246d5c1bc3c2e /scripts/nix-push.in
parent2c5a8bf49f6ed5f6584bac6b8abae1def86f95f7 (diff)
* 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.

Diffstat (limited to 'scripts/nix-push.in')
-rw-r--r--scripts/nix-push.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in
index 57d89d13ccad..02f40f04a97d 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.