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:
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-xscripts/install.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index ebf070eb5..53a0e2df3 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -2,7 +2,10 @@
if [ "x$0" = "xsh" ]; then
# run as curl | sh
- cat > npm-install-$$.sh
+ # on some systems, you can just do cat>npm-install.sh
+ # which is a bit cuter. But on others, &1 is already closed,
+ # so catting to another script file won't do anything.
+ curl -s http://npmjs.org/install.sh > npm-install-$$.sh
sh npm-install-$$.sh
ret=$?
rm npm-install-$$.sh