diff options
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 \ |