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:
authorChris Wong <chris@chriswongstudio.com>2011-04-07 03:19:12 +0400
committerisaacs <i@izs.me>2011-04-07 05:09:05 +0400
commit8e113f8dc4e1a557e7d597e500da4f59a1d36154 (patch)
tree5fdb612957d0addcbadaa229b8e01a7dc43bff5f /scripts
parent6f74a741c4fceb3afb753e5c996579e8b8291a4f (diff)
install.sh uses curl -L to go through proxy server with 302 redirect
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index b86790ce5..8dbf9acf2 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -54,7 +54,7 @@ if [ -z "$t" ]; then
t="latest"
fi
-url=`curl -s http://registry.npmjs.org/npm/$t \
+url=`curl -s -L http://registry.npmjs.org/npm/$t \
| $egrep -o 'tarball":"[^"]+' \
| head -n 1 \
| $egrep -o 'http://.*'`