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-09-14 01:28:19 +0400
committerisaacs <i@izs.me>2010-09-14 01:28:19 +0400
commitfe06c36f420e7c88469316014c2dd7bf0c4574eb (patch)
treee574621f1b9225747ec3724ab361d7dec7ae9c49 /scripts
parentd93b74ab6c88764db0a3e9d10bce3f557854c231 (diff)
Be respectful of weird places where tar might live.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 9c6d802f2..38e6c5e1e 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,8 +1,9 @@
#!/bin/sh
r=${RANDOM-$(date +%s)}
+tar=${TAR-$(if (which gtar 2>/dev/null) ; then which gtar ; else echo "tar" ; fi)}
mkdir npm-$r \
&& cd npm-$r \
- && curl -L http://github.com/isaacs/npm/tarball/master | tar xzf - --strip-components=1 \
+ && curl -L http://github.com/isaacs/npm/tarball/master | $tar xzf - --strip-components=1 \
&& make uninstall install \
&& cd .. \
&& rm -rf npm-$r \