diff options
author | isaacs <i@izs.me> | 2010-09-14 01:50:22 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-09-14 01:50:22 +0400 |
commit | 0406142d771362d87da4d77ce92a072e32e8fb8a (patch) | |
tree | 6967fea13001df2f9262737ac7a1f7a70df23edf /scripts | |
parent | fe06c36f420e7c88469316014c2dd7bf0c4574eb (diff) |
More solarisy fixes to the easy install script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 2 |
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 \ |