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>2010-08-08 04:08:15 +0400
committerisaacs <i@izs.me>2010-08-08 04:08:15 +0400
commitc355e76fb32629ef479091668e143d9cd6175678 (patch)
treefe7d57753ffa9acc1c61eaf35dc6fa9ebffd6de1 /scripts
parentbf840687956f0346abb4ce3a1b4d15c94bae328d (diff)
Uninstall, and use a random directory
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 8430ea861..279dda215 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,9 +1,9 @@
#!/bin/sh
-
-mkdir npm \
- && cd npm \
+r=$RANDOM
+mkdir npm-$r \
+ && cd npm-$r \
&& curl -L http://github.com/isaacs/npm/tarball/master | tar xzf - --strip-components=1 \
- && make \
+ && make uninstall install \
&& cd .. \
- && rm -rf npm \
+ && rm -rf npm-$r \
&& echo "It worked"