diff options
author | isaacs <i@izs.me> | 2010-09-14 01:28:19 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-09-14 01:28:19 +0400 |
commit | fe06c36f420e7c88469316014c2dd7bf0c4574eb (patch) | |
tree | e574621f1b9225747ec3724ab361d7dec7ae9c49 /scripts | |
parent | d93b74ab6c88764db0a3e9d10bce3f557854c231 (diff) |
Be respectful of weird places where tar might live.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 3 |
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 \ |