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:50:22 +0400
committerisaacs <i@izs.me>2010-09-14 01:50:22 +0400
commit0406142d771362d87da4d77ce92a072e32e8fb8a (patch)
tree6967fea13001df2f9262737ac7a1f7a70df23edf /scripts
parentfe06c36f420e7c88469316014c2dd7bf0c4574eb (diff)
More solarisy fixes to the easy install script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 38e6c5e1e..9ad05843f 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,6 +1,6 @@
#!/bin/sh
r=${RANDOM-$(date +%s)}
-tar=${TAR-$(if (which gtar 2>/dev/null) ; then which gtar ; else echo "tar" ; fi)}
+tar=${TAR-$(if which gtar 1>/dev/null 2>/dev/null; then echo "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 \