Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-10-01 04:03:54 +0400
committerisaacs <i@izs.me>2011-10-01 04:03:54 +0400
commite74abdedc5c481dd585b1524589c0d9fb01dfed6 (patch)
treec98afbc62559f578041b18a651a8968e327ca112 /scripts
parentd965a82a4752a6aa3dcc050975704e6b8eb1d158 (diff)
cacert takes a file, not a string
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 647f2447f..36711df8e 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -147,6 +147,9 @@ ZNufy1Jf1r0ldEGeA+0ISck7s+xSh9rQD2Op
-----END CERTIFICATE-----
'
+echo "$cacert" > "$TMP/cafile.crt"
+cacert="$TMP/cafile.crt"
+
# need to echo "" after, because Posix sed doesn't treat EOF
# as an implied end of line.
url=`(curl -SsL --cacert "$cacert" https://registry.npmjs.org/npm/$t; echo "") \