From c355e76fb32629ef479091668e143d9cd6175678 Mon Sep 17 00:00:00 2001 From: isaacs Date: Sat, 7 Aug 2010 17:08:15 -0700 Subject: Uninstall, and use a random directory --- scripts/install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts') 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" -- cgit v1.2.3