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:06:42 +0400
committerisaacs <i@izs.me>2011-10-01 04:07:10 +0400
commite5f2e9b7da3a6f0b561cf34e3e17b28d35b7f6c3 (patch)
treeb430a8fed17bdbba6ce9e49e0c4b79ba1a1b70b0 /scripts
parente74abdedc5c481dd585b1524589c0d9fb01dfed6 (diff)
Remove the cacert before trying to cd into the folder
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 36711df8e..0caeb9eb5 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -166,7 +166,8 @@ echo "fetching: $url" >&2
cd "$TMP" \
&& curl -SsL --cacert "$cacert" "$url" \
| $tar -xzf - \
- && cd * \
+ && rm "$cacert" \
+ && cd "$TMP"/* \
&& (node_version=`"$node" --version 2>&1`
ret=$?
if [ $ret -eq 0 ]; then