We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe06c36 commit 0406142Copy full SHA for 0406142
scripts/install.sh
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
r=${RANDOM-$(date +%s)}
3
-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)}
4
mkdir npm-$r \
5
&& cd npm-$r \
6
&& curl -L http://github.com/isaacs/npm/tarball/master | $tar xzf - --strip-components=1 \
0 commit comments