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-05-01 22:55:23 +0400
committerisaacs <i@izs.me>2011-05-01 22:55:23 +0400
commitf2bf53bdc2b55b9f34f7ab8288f8ad6526a369b3 (patch)
treef4665e60339c99d3ac04a30f7970ea666d95afe2 /scripts
parent87e664a47ac94424828e30d0da42b5e97d1bd84d (diff)
Support for Linux.
Diffstat (limited to 'scripts')
-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