Browse Source

curl: add wrapper to read key/cert from git if available

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 11 years ago
parent
commit
05034e7be1
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      files/bin/curl

+ 9
- 0
files/bin/curl

@ -0,0 +1,9 @@
#!/bin/sh
CERT="$(git config http.sslcert 2> /dev/null)"
KEY="$(git config http.sslkey 2> /dev/null)"
exec /usr/bin/curl \
${KEY:+--key "$KEY"} \
${CERT:+--cert "$CERT"} \
"$@"

Loading…
Cancel
Save