diff options
author | isaacs <i@izs.me> | 2011-10-01 04:03:54 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-01 04:03:54 +0400 |
commit | e74abdedc5c481dd585b1524589c0d9fb01dfed6 (patch) | |
tree | c98afbc62559f578041b18a651a8968e327ca112 /scripts | |
parent | d965a82a4752a6aa3dcc050975704e6b8eb1d158 (diff) |
cacert takes a file, not a string
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/install.sh | 3 |
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 "") \ |