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:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh17
1 files changed, 1 insertions, 16 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 627292239..c5b5860fa 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -27,22 +27,7 @@ BACK="$PWD"
tar="${TAR}"
if [ -z "$tar" ]; then
- tar=`which gtar 2>&1`
- if [ $? -ne 0 ] || ! [ -x $tar ]; then
- tar=tar
- else
- # tar is used by npm, so let's set the config all over the place.
- # This isn't guaranteed to work, but it is very likely.
- if [ -d $HOME ]; then
- echo "tar = $tar" >> $HOME/.npmrc
- fi
- globalconfig=`dirname "$node"`
- globalconfig=`dirname "$globalconfig"`
- globalconfig="$globalconfig"/etc/npmrc
- echo "tar = $tar" >> $globalconfig
-
- echo "It would be wise to add 'TAR=$tar' to your environment." >&2
- fi
+ tar=tar
fi
egrep=`which gegrep 2>&1`